Mercurial > vim
comparison src/testdir/test_menu.vim @ 29332:a538982f74ea v9.0.0009
patch 9.0.0009: going past the end of a menu item with only modifier
Commit: https://github.com/vim/vim/commit/083692d598139228e101b8c521aaef7bcf256e9a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 29 21:16:58 2022 +0100
patch 9.0.0009: going past the end of a menu item with only modifier
Problem: Going past the end of a menu item with only modifier.
Solution: Check for NUL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Jun 2022 22:30:03 +0200 |
parents | 6f615b2fdc66 |
children | 8f0ca93857a6 |
comparison
equal
deleted
inserted
replaced
29331:d78c62e61b42 | 29332:a538982f74ea |
---|---|
526 [TEXT] | 526 [TEXT] |
527 call assert_equal(exp, split(execute('tmenu'), "\n")) | 527 call assert_equal(exp, split(execute('tmenu'), "\n")) |
528 tunmenu Test | 528 tunmenu Test |
529 endfunc | 529 endfunc |
530 | 530 |
531 func Test_only_modifier() | |
532 exe "tmenu a.b \x80\xfc0" | |
533 let exp =<< trim [TEXT] | |
534 --- Menus --- | |
535 500 a | |
536 500 b | |
537 t - <T-2-^@> | |
538 [TEXT] | |
539 call assert_equal(exp, split(execute('tmenu'), "\n")) | |
540 | |
541 tunmenu a.b | |
542 endfunc | |
543 | |
531 " vim: shiftwidth=2 sts=2 expandtab | 544 " vim: shiftwidth=2 sts=2 expandtab |