vim-patch:9.1.2020: tests: test_virtualedit.vim leaves swapfiles behind (#37115)

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

a8a0ee5004

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-12-27 08:57:52 +08:00
committed by GitHub
parent 899ec829be
commit 7b5276b382

View File

@@ -395,7 +395,7 @@ func Test_delete_break_tab()
normal v3ld
call assert_equal(' two', getline(1))
set virtualedit&
close!
bw!
endfunc
" Test for using <BS>, <C-W> and <C-U> in virtual edit mode
@@ -413,7 +413,7 @@ func Test_ve_backspace()
call assert_equal([0, 1, 1, 0], getpos('.'))
set backspace&
set virtualedit&
close!
bw!
endfunc
" Test for delete (x) on EOL character and after EOL