]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2041: tests: test_menu.vim leaves swapfiles behind v9.1.2041
authorChristian Brabandt <cb@256bit.org>
Fri, 2 Jan 2026 13:49:18 +0000 (13:49 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 2 Jan 2026 13:49:18 +0000 (13:49 +0000)
Problem:  tests: test_menu.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_menu.vim
src/version.c

index 627d81476e42f0f0b2cdbe4189eef632b9ef2181..24c053ab4306d832751e30e21a4970976dae2e04 100644 (file)
@@ -430,7 +430,7 @@ func Test_menu_special()
   call feedkeys(":emenu n Test.Sign\<CR>", '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
index 7ab092ac58ee0ba3ae82bdc73e4895b8b0fa19a1..600fa4c01ee93573da8dcc781609f0f6cb7e100b 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2041,
 /**/
     2040,
 /**/