From: Christian Brabandt Date: Wed, 17 Dec 2025 21:16:31 +0000 (+0100) Subject: patch 9.1.1996: tests: test_cmdline.vim leaves swapfiles behind X-Git-Tag: v9.1.1996^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf1b41e387eb47421a256b9a4eb9c01ae29099ee;p=thirdparty%2Fvim.git patch 9.1.1996: tests: test_cmdline.vim leaves swapfiles behind Problem: tests: test_cmdline.vim leaves swapfiles behind Solution: Close open buffers using :bw! instead of :close! Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 10246b883b..b4d11ac9d2 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -1861,7 +1861,7 @@ func Test_lnum_and_pattern_as_range() 2/foo/yank call assert_equal("foo 3\n", @") call assert_equal(1, line('.')) - close! + bw! endfunc " Tests for getcmdline(), getcmdpos() and getcmdtype() @@ -2219,7 +2219,7 @@ func Test_cmdline_ctrl_g() " 'insertmode' call feedkeys(":set im\\:\\12\:set noim\", 'xt') call assert_equal('ab12xyc', getline(1)) - close! + bw! endfunc " Test for 'wildmode' diff --git a/src/version.c b/src/version.c index 02a1cc7f25..1ae59e0fda 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 */ +/**/ + 1996, /**/ 1995, /**/