Commit: patch 9.1.2103: tests: test_fold.vim leaves swapfiles behind

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 21, 2026, 3:01:23 PM (yesterday) Jan 21
to vim...@googlegroups.com
patch 9.1.2103: tests: test_fold.vim leaves swapfiles behind

Commit: https://github.com/vim/vim/commit/10b272c126e906b6bab3621b162ae7faea42472a
Author: Christian Brabandt <c...@256bit.org>
Date: Wed Jan 21 19:54:47 2026 +0000

patch 9.1.2103: tests: test_fold.vim leaves swapfiles behind

Problem: tests: test_fold.vim leaves swapfiles behind
Solution: Close open buffer using :bw! instead of :close!

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim
index 56b6aaece..763988558 100644
--- a/src/testdir/test_fold.vim
+++ b/src/testdir/test_fold.vim
@@ -1091,7 +1091,7 @@ func Test_fold_expr_error()
endfor

set foldmethod& foldexpr&
- close!
+ bw!
endfunc

func Test_undo_fold_deletion()
diff --git a/src/version.c b/src/version.c
index b893c9ad2..47ae372a4 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 */
+/**/
+ 2103,
/**/
2102,
/**/
Reply all
Reply to author
Forward
0 new messages