patch 9.1.1956: tests: test_sort.vim leaves swapfiles behind

Commit: 
https://github.com/vim/vim/commit/f8c550fea05e4630c3baf83fed8469f7c2824f01
Author: Christian Brabandt <[email protected]>
Date:   Sat Dec 6 10:28:33 2025 +0100

    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!
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testdir/test_sort.vim b/src/testdir/test_sort.vim
index 39c4114f0..1c60e8e42 100644
--- a/src/testdir/test_sort.vim
+++ b/src/testdir/test_sort.vim
@@ -1500,7 +1500,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
@@ -1510,7 +1510,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
@@ -1540,7 +1540,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
 
 " Test for sort() using a dict function
diff --git a/src/version.c b/src/version.c
index 3df7fce94..5c9f5c5c6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1956,
 /**/
     1955,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vRocB-001Rb5-9e%40256bit.org.

Raspunde prin e-mail lui