neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d13e8f1a34bfd6aaaaf79e3ea6bdb8f7769e21af
parent c9f63d13b6024085191635efdf50d41de2810e9a
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon,  1 Dec 2025 10:16:36 +0800

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 <cb@256bit.org>

Diffstat:
Mtest/old/testdir/test_matchfuzzy.vim | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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'}]