From 57fbcc6929e8c2a9da1b17c75c062dc64dcd0a62 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 5 Aug 2022 07:54:14 +0800 Subject: 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 --- runtime/menu.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime') 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 -" 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("") - let num = expand("") + let num = expand("") + 0 " add zero to convert to a number type if s:BMCanAdd(name, num) call BMFilename(name, num) let s:bmenu_count += 1 -- cgit