diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-05 07:57:41 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-05 07:58:38 +0800 |
| commit | 3aef2b8bdf0d451651efc452ca2a44ed2824f0ec (patch) | |
| tree | 1e26aaa2cf72b86cd354da2f52d4eace20dd8a66 /src/nvim/testdir | |
| parent | 57fbcc6929e8c2a9da1b17c75c062dc64dcd0a62 (diff) | |
| download | rneovim-3aef2b8bdf0d451651efc452ca2a44ed2824f0ec.tar.gz rneovim-3aef2b8bdf0d451651efc452ca2a44ed2824f0ec.tar.bz2 rneovim-3aef2b8bdf0d451651efc452ca2a44ed2824f0ec.zip | |
vim-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.
https://github.com/vim/vim/commit/083692d598139228e101b8c521aaef7bcf256e9a
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_menu.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_menu.vim b/src/nvim/testdir/test_menu.vim index c85da7f5b1..a759ab6d05 100644 --- a/src/nvim/testdir/test_menu.vim +++ b/src/nvim/testdir/test_menu.vim @@ -530,4 +530,17 @@ func Test_tmenu() tunmenu Test endfunc +func Test_only_modifier() + exe "tmenu a.b \x80\xfc0" + let exp =<< trim [TEXT] + --- Menus --- + 500 a + 500 b + t - <T-2-^@> + [TEXT] + call assert_equal(exp, split(execute('tmenu'), "\n")) + + tunmenu a.b +endfunc + " vim: shiftwidth=2 sts=2 expandtab |