patch 9.1.2041: tests: test_menu.vim leaves swapfiles behind
Commit:
https://github.com/vim/vim/commit/7f5c60b31e9f04beb149e256486eb69bfb47ad39
Author: Christian Brabandt <[email protected]>
Date: Fri Jan 2 13:49:18 2026 +0000
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 <[email protected]>
diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim
index 627d81476..24c053ab4 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\<CR>", 'x')
call assert_equal("m n", 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 7ab092ac5..600fa4c01 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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vbfhE-00ASqt-Lo%40256bit.org.