diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-07 14:07:30 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-12-07 14:25:58 +0800 |
commit | 214c9ed1e2ad7881103a0eaed646a29e3e1392cd (patch) | |
tree | 35dc807dda8b78d4640a891420c6063790d4a2eb /runtime/menu.vim | |
parent | c61af03cd2c310c1ee472b4529c34f6656574770 (diff) | |
download | rneovim-214c9ed1e2ad7881103a0eaed646a29e3e1392cd.tar.gz rneovim-214c9ed1e2ad7881103a0eaed646a29e3e1392cd.tar.bz2 rneovim-214c9ed1e2ad7881103a0eaed646a29e3e1392cd.zip |
vim-patch:fa3b72348d88
Update runtime files
https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index 187818b41d..1c48d617eb 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2020 Sep 28 +" Last Change: 2021 Dec 22 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -717,6 +717,11 @@ func s:BMCanAdd(name, num) return 0 endif + " no name with control characters + if a:name =~ '[\x01-\x1f]' + return 0 + endif + " no special buffer, such as terminal or popup let buftype = getbufvar(a:num, '&buftype') if buftype != '' && buftype != 'nofile' && buftype != 'nowrite' |