]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1950: tests: Test_tagjump.vim leaves swapfiles behind v9.1.1950
authorChristian Brabandt <cb@256bit.org>
Wed, 3 Dec 2025 19:27:08 +0000 (19:27 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 3 Dec 2025 19:27:08 +0000 (19:27 +0000)
Problem:  tests: Test_tagjump.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

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

index 5ddaaadc27bdffacd1d7d6ff8070cafdb20aefa1..2e8a5ac9d3441c80f2a8ff3fc694c912bdd06729 100644 (file)
@@ -1310,7 +1310,7 @@ func Test_inc_search()
   call assert_fails('isplit 6 foo', 'E389:')
   call assert_fails('isplit bar', 'E389:')
 
-  close!
+  bw!
 endfunc
 
 " this was using a line from ml_get() freed by the regexp
@@ -1423,7 +1423,7 @@ func Test_macro_search()
   call assert_fails('dsplit 6 FOO', 'E388:')
   call assert_fails('dsplit BAR', 'E388:')
 
-  close!
+  bw!
 endfunc
 
 func Test_define_search()
@@ -1469,7 +1469,7 @@ func Test_comment_search()
   call assert_beeps('normal! 15|[/')
   call setline(1, '        /* comment')
   call assert_beeps('normal! 15|]/')
-  close!
+  bw!
 endfunc
 
 " Test for the 'taglength' option
index 186cddf80ef8c0e2efe7d3d340e5b3b8173333b5..046706edfc52d05bc698a3d33c407c7292904e9d 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1950,
 /**/
     1949,
 /**/