Commit: patch 9.1.1996: tests: test_cmdline.vim leaves swapfiles behind

1 view
Skip to first unread message

Christian Brabandt

unread,
Dec 17, 2025, 4:30:52 PM (10 hours ago) Dec 17
to vim...@googlegroups.com
patch 9.1.1996: tests: test_cmdline.vim leaves swapfiles behind

Commit: https://github.com/vim/vim/commit/bf1b41e387eb47421a256b9a4eb9c01ae29099ee
Author: Christian Brabandt <c...@256bit.org>
Date: Wed Dec 17 22:16:31 2025 +0100

patch 9.1.1996: tests: test_cmdline.vim leaves swapfiles behind

Problem: tests: test_cmdline.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_cmdline.vim b/src/testdir/test_cmdline.vim
index 10246b883..b4d11ac9d 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -1861,7 +1861,7 @@ func Test_lnum_and_pattern_as_range()
2/foo/yank
call assert_equal("foo 3
", @")
call assert_equal(1, line('.'))
- close!
+ bw!
endfunc

" Tests for getcmdline(), getcmdpos() and getcmdtype()
@@ -2219,7 +2219,7 @@ func Test_cmdline_ctrl_g()
" 'insertmode'
call feedkeys(":set im\<cr>\<C-L>:\<C-\>\<C-G>12\<C-L>:set noim\<cr>", 'xt')
call assert_equal('ab12xyc', getline(1))
- close!
+ bw!
endfunc

" Test for 'wildmode'
diff --git a/src/version.c b/src/version.c
index 02a1cc7f2..1ae59e0fd 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 */
+/**/
+ 1996,
/**/
1995,
/**/
Reply all
Reply to author
Forward
0 new messages