Commit: patch 9.1.2041: tests: test_menu.vim leaves swapfiles behind

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 2, 2026, 9:01:04 AM (5 days ago) Jan 2
to vim...@googlegroups.com
patch 9.1.2041: tests: test_menu.vim leaves swapfiles behind

Commit: https://github.com/vim/vim/commit/7f5c60b31e9f04beb149e256486eb69bfb47ad39
Author: Christian Brabandt <c...@256bit.org>
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 <c...@256bit.org>

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,
/**/
Reply all
Reply to author
Forward
0 new messages