From 0837ccbf247efd4b3769e2b7464f7d92a6182af9 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 10 Jun 2026 22:32:09 -0400 Subject: [PATCH] vim-patch:9.1.1956: tests: test_sort.vim leaves swapfiles behind Problem: tests: test_sort.vim leaves swapfiles behind Solution: Close open buffers using :bw! instead of :close! https://github.com/vim/vim/commit/f8c550fea05e4630c3baf83fed8469f7c2824f01 Co-authored-by: Christian Brabandt --- test/old/testdir/test_sort.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/old/testdir/test_sort.vim b/test/old/testdir/test_sort.vim index 2d03dd2f2a..d8f6b2a64f 100644 --- a/test/old/testdir/test_sort.vim +++ b/test/old/testdir/test_sort.vim @@ -1504,7 +1504,7 @@ func Test_sort_followed_by_cmd() call setline(1, ['3b', '1c', '2a']) %sort /\d\+/ " sort alphabetically call assert_equal(['2a', '3b', '1c'], getline(1, '$')) - close! + bw! endfunc " Test for :sort using last search pattern @@ -1514,7 +1514,7 @@ func Test_sort_last_search_pat() call setline(1, ['3b', '1c', '2a']) sort // call assert_equal(['2a', '3b', '1c'], getline(1, '$')) - close! + bw! endfunc " Test for :sort with no last search pattern @@ -1544,7 +1544,7 @@ func Test_sort_with_marks() call assert_equal(2, line("'a")) call assert_equal(3, line("'b")) call assert_equal(1, line("'c")) - close! + bw! endfunc " vim: shiftwidth=2 sts=2 expandtab