From 5908fdf72fa1995735e38c46f254ddde81a87c1f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 29 Mar 2020 20:08:45 +0200 Subject: 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 #5864) --- runtime/menu.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/menu.vim') 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 -" 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 v1.2.3