diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-29 20:08:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-29 20:08:45 +0200 |
commit | 5908fdf72fa1995735e38c46f254ddde81a87c1f (patch) | |
tree | f602cce0b434397d8eef3bfde2a9b50ef9e9ef51 /runtime | |
parent | c58164c5cff9845f3bf7cfcd75ace43208829388 (diff) |
patch 8.2.0478: new buffers are not added to the Buffers menuv8.2.0478
Problem: New buffers are not added to the Buffers menu.
Solution: Turn number into string. (Yee Cheng Chin, closes #5864)
Diffstat (limited to 'runtime')
-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 b17e8ea884..8400180aaa 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 |