]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1939: tests: test_matchfuzzy() leaves swapfiles behind v9.1.1939
authorChristian Brabandt <cb@256bit.org>
Sun, 30 Nov 2025 15:09:53 +0000 (15:09 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 30 Nov 2025 15:09:53 +0000 (15:09 +0000)
Problem:  tests: test_matchfuzzy() leaves swapfiles behind
Solution: Close loaded buffers using "%bw"

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

index 581ec35119d2440832f20c39c1dc4b52342e1a7d..eb4c8c656751d2fa7b8101ce558d1bf7e6f6d5eb 100644 (file)
@@ -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'}]
index 528dc077b64a15aeffc923d15528e6cb153c476e..13ec4924d0feed67a7f11886647bd4ada0e84505 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1939,
 /**/
     1938,
 /**/