diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-05 07:54:14 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-05 07:56:56 +0800 |
commit | 57fbcc6929e8c2a9da1b17c75c062dc64dcd0a62 (patch) | |
tree | 93974bf51be576954edcd90f8404d45182df79d0 /runtime/menu.vim | |
parent | d985323c555b894e0a6eb8bb283bb0318467c476 (diff) | |
download | rneovim-57fbcc6929e8c2a9da1b17c75c062dc64dcd0a62.tar.gz rneovim-57fbcc6929e8c2a9da1b17c75c062dc64dcd0a62.tar.bz2 rneovim-57fbcc6929e8c2a9da1b17c75c062dc64dcd0a62.zip |
vim-patch:8.2.0478: new buffers are not added to the Buffers menu
Problem: New buffers are not added to the Buffers menu.
Solution: Turn number into string. (Yee Cheng Chin, closes vim/vim#5864)
https://github.com/vim/vim/commit/5908fdf72fa1995735e38c46f254ddde81a87c1f
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index 706e3072d7..0a5ac36095 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 Mar 19 +" Last Change: 2020 Mar 29 " 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. @@ -672,7 +672,7 @@ func s:BMAdd() call s:BMShow() else let name = expand("<afile>") - let num = expand("<abuf>") + let num = expand("<abuf>") + 0 " add zero to convert to a number type if s:BMCanAdd(name, num) call <SID>BMFilename(name, num) let s:bmenu_count += 1 |