]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1996: tests: test_cmdline.vim leaves swapfiles behind v9.1.1996
authorChristian Brabandt <cb@256bit.org>
Wed, 17 Dec 2025 21:16:31 +0000 (22:16 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Dec 2025 21:16:31 +0000 (22:16 +0100)
Problem:  tests: test_cmdline.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

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

index 10246b883bf493647d3f2231f31551aa0515a9c5..b4d11ac9d234f7877cd51c58e89bcb0f5c58b1ef 100644 (file)
@@ -1861,7 +1861,7 @@ func Test_lnum_and_pattern_as_range()
   2/foo/yank
   call assert_equal("foo 3\n", @")
   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'
index 02a1cc7f255f7f45c2458a668c35923c746a8e67..1ae59e0fdab6d6ae663189a6e88d8df39ad906ea 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1996,
 /**/
     1995,
 /**/