mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user