vim-patch:9.1.2103: tests: test_fold.vim leaves swapfiles behind

Problem:  tests: test_fold.vim leaves swapfiles behind
Solution: Close open buffer using :bw! instead of :close!

10b272c126

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2026-01-24 06:56:06 +08:00
parent b3242af187
commit cd624f24f6

View File

@@ -1097,7 +1097,7 @@ func Test_fold_expr_error()
endfor
set foldmethod& foldexpr&
close!
bw!
endfunc
func Test_undo_fold_deletion()