mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
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.
083692d598
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user