Commit: patch 9.1.2020: tests: test_virtualedit.vim leaves swapfiles behind

2 views
Skip to first unread message

Christian Brabandt

unread,
Dec 26, 2025, 10:30:59 AM (yesterday) Dec 26
to vim...@googlegroups.com
patch 9.1.2020: tests: test_virtualedit.vim leaves swapfiles behind

Commit: https://github.com/vim/vim/commit/a8a0ee5004a005421212961a06ca7e49d7c8ef2d
Author: Christian Brabandt <c...@256bit.org>
Date: Fri Dec 26 15:16:46 2025 +0000

patch 9.1.2020: tests: test_virtualedit.vim leaves swapfiles behind

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

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_virtualedit.vim b/src/testdir/test_virtualedit.vim
index 03b8539d7..fa6151cda 100644
--- a/src/testdir/test_virtualedit.vim
+++ b/src/testdir/test_virtualedit.vim
@@ -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
diff --git a/src/version.c b/src/version.c
index 5c16b6f50..82e85a94d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2020,
/**/
2019,
/**/
Reply all
Reply to author
Forward
0 new messages