diff options
author | dkearns <dougkearns@gmail.com> | 2024-03-20 04:04:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 18:04:42 +0100 |
commit | ec21bafc135a1e78d40e4fc9118e022bbab958e8 (patch) | |
tree | 85cbf9638fe63e39f2b11b78b2e39e4fc7e0c0ac /runtime/syntax/testdir/input | |
parent | 702f7923f6e57051b314e26fde6734dfb1292da7 (diff) |
runtime(vim): Update base-syntax, disallow '.' at start of menu item names (#14232)
Disallow '.' at the start of a menu item name.
This is the menu path separator character and should be escaped with a
'\' in this case.
Partially fixes #14230. "popup" is still incorrectly matched as the Ex
command.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/testdir/input')
-rw-r--r-- | runtime/syntax/testdir/input/vim_ex_menu.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim_ex_menu.vim b/runtime/syntax/testdir/input/vim_ex_menu.vim index da10a110e4..fb737c2c2f 100644 --- a/runtime/syntax/testdir/input/vim_ex_menu.vim +++ b/runtime/syntax/testdir/input/vim_ex_menu.vim @@ -71,3 +71,17 @@ an <silent> 10.330 &File.&Close<Tab>:close :if winheight(2) < 0 && tabpagewinnr( popup &Foo | echo "Foo" popup! &Foo | echo "Foo" + +" Issue #14230 + +" a menu item name cannot start with '.' + +export def HistoryJumpMenu() + popup.FilterMenu("Jump history", dir_hist, + (res, _) => { + HistoryJump(res.text) + }) +enddef + +popup\.FilterMenu<Tab>Filter()<CR> + |