patch 9.1.1939: tests: test_matchfuzzy() leaves swapfiles behind
Commit:
https://github.com/vim/vim/commit/6e9694df10a32cfe3314c2487f4f0110c4d3de67
Author: Christian Brabandt <
c...@256bit.org>
Date: Sun Nov 30 15:09:53 2025 +0000
patch 9.1.1939: tests: test_matchfuzzy() leaves swapfiles behind
Problem: tests: test_matchfuzzy() leaves swapfiles behind
Solution: Close loaded buffers using "%bw"
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/testdir/test_matchfuzzy.vim b/src/testdir/test_matchfuzzy.vim
index 581ec3511..eb4c8c656 100644
--- a/src/testdir/test_matchfuzzy.vim
+++ b/src/testdir/test_matchfuzzy.vim
@@ -58,6 +58,7 @@ func Test_matchfuzzy()
let l = getbufinfo()->map({_, v -> fnamemodify(
v.name, ':t')})->matchfuzzy('ndl')
call assert_equal(1, len(l))
call assert_match('needle', l[0])
+ %bw!
" Test for fuzzy matching dicts
let l = [{'id' : 5, 'val' : 'crayon'}, {'id' : 6, 'val' : 'camera'}]
diff --git a/src/version.c b/src/version.c
index 528dc077b..13ec4924d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1939,
/**/
1938,
/**/