From: Christian Brabandt Date: Fri, 2 Jan 2026 13:49:18 +0000 (+0000) Subject: patch 9.1.2041: tests: test_menu.vim leaves swapfiles behind X-Git-Tag: v9.1.2041^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f5c60b31e9f04beb149e256486eb69bfb47ad39;p=thirdparty%2Fvim.git patch 9.1.2041: tests: test_menu.vim leaves swapfiles behind Problem: tests: test_menu.vim leaves swapfiles behind Solution: Close open buffers using :bw! instead of :close! Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim index 627d81476e..24c053ab43 100644 --- a/src/testdir/test_menu.vim +++ b/src/testdir/test_menu.vim @@ -430,7 +430,7 @@ func Test_menu_special() call feedkeys(":emenu n Test.Sign\", 'x') call assert_equal("m\tn", getline(1)) set cpo-=< - close! + bw! nunmenu Test.Sign endfunc @@ -468,7 +468,7 @@ func Test_emenu_cmd() 2emenu Test.foo call assert_equal(['aaaa', 'xxxx'], getline(1, 2)) xunmenu Test.foo - close! + bw! endfunc " Test for PopUp menus diff --git a/src/version.c b/src/version.c index 7ab092ac58..600fa4c01e 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2041, /**/ 2040, /**/