]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2103: tests: test_fold.vim leaves swapfiles behind master v9.1.2103
authorChristian Brabandt <cb@256bit.org>
Wed, 21 Jan 2026 19:54:47 +0000 (19:54 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 21 Jan 2026 19:54:47 +0000 (19:54 +0000)
Problem:  tests: test_fold.vim leaves swapfiles behind
Solution: Close open buffer using :bw! instead of :close!

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

index 56b6aaece04b00f0dbf875868137a982b5b3ec6f..76398855842fd3901a2543dcd395759d5a306e56 100644 (file)
@@ -1091,7 +1091,7 @@ func Test_fold_expr_error()
   endfor
 
   set foldmethod& foldexpr&
-  close!
+  bw!
 endfunc
 
 func Test_undo_fold_deletion()
index b893c9ad2543d92c86b5b9549dc9791787982e3b..47ae372a42ae81c0d472bd9ffd85b776acb36955 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2103,
 /**/
     2102,
 /**/