]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2020: tests: test_virtualedit.vim leaves swapfiles behind v9.1.2020
authorChristian Brabandt <cb@256bit.org>
Fri, 26 Dec 2025 15:16:46 +0000 (15:16 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 26 Dec 2025 15:16:46 +0000 (15:16 +0000)
Problem:  tests: test_virtualedit.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

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

index 03b8539d764d8ecf926fce2e4db93c2d724faed4..fa6151cdac1e1f5791ebbf0aabf4085d891aef23 100644 (file)
@@ -395,7 +395,7 @@ func Test_delete_break_tab()
   normal v3ld
   call assert_equal('    two', getline(1))
   set virtualedit&
-  close!
+  bw!
 endfunc
 
 " Test for using <BS>, <C-W> and <C-U> in virtual edit mode
@@ -413,7 +413,7 @@ func Test_ve_backspace()
   call assert_equal([0, 1, 1, 0], getpos('.'))
   set backspace&
   set virtualedit&
-  close!
+  bw!
 endfunc
 
 " Test for delete (x) on EOL character and after EOL
index 5c16b6f508254980be033c3bd4013b64d86f2f39..82e85a94d44469d795e1112fd3b2825517c2d416 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2020,
 /**/
     2019,
 /**/