commit 132567c71f41e699a76305c597b18ef1b456bb1b
parent e62dd13f83a200105a2b8466e729c39485fa766d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 4 Dec 2025 08:27:42 +0800
vim-patch:9.1.1950: tests: Test_tagjump.vim leaves swapfiles behind
Problem: tests: Test_tagjump.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!
https://github.com/vim/vim/commit/05a56aabeed0bd4fab3c51e31bd831b42a005aca
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/old/testdir/test_tagjump.vim b/test/old/testdir/test_tagjump.vim
@@ -1349,7 +1349,7 @@ func Test_inc_search()
call assert_fails('isplit 6 foo', 'E389:')
call assert_fails('isplit bar', 'E389:')
- close!
+ bw!
endfunc
" this was using a line from ml_get() freed by the regexp
@@ -1462,7 +1462,7 @@ func Test_macro_search()
call assert_fails('dsplit 6 FOO', 'E388:')
call assert_fails('dsplit BAR', 'E388:')
- close!
+ bw!
endfunc
func Test_define_search()
@@ -1508,7 +1508,7 @@ func Test_comment_search()
call assert_beeps('normal! 15|[/')
call setline(1, ' /* comment')
call assert_beeps('normal! 15|]/')
- close!
+ bw!
endfunc
" Test for the 'taglength' option