From d13e8f1a34bfd6aaaaf79e3ea6bdb8f7769e21af Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 1 Dec 2025 10:16:36 +0800 Subject: [PATCH] vim-patch:9.1.1939: tests: test_matchfuzzy() leaves swapfiles behind Problem: tests: test_matchfuzzy() leaves swapfiles behind Solution: Close loaded buffers using "%bw" https://github.com/vim/vim/commit/6e9694df10a32cfe3314c2487f4f0110c4d3de67 Co-authored-by: Christian Brabandt --- test/old/testdir/test_matchfuzzy.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/test/old/testdir/test_matchfuzzy.vim b/test/old/testdir/test_matchfuzzy.vim index c817337eeb..127087175f 100644 --- a/test/old/testdir/test_matchfuzzy.vim +++ b/test/old/testdir/test_matchfuzzy.vim @@ -62,6 +62,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'}]