patch 9.1.1939: tests: test_matchfuzzy() leaves swapfiles behind
Commit:
https://github.com/vim/vim/commit/6e9694df10a32cfe3314c2487f4f0110c4d3de67
Author: Christian Brabandt <[email protected]>
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 <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vPj8k-009eie-4p%40256bit.org.