patch 9.1.2038: tests: test_marks.vim leaves swapfiles behind

Commit: 
https://github.com/vim/vim/commit/4fe7301df9bd02308cbea043f58aed56bf4639da
Author: Christian Brabandt <[email protected]>
Date:   Thu Jan 1 16:20:08 2026 +0000

    patch 9.1.2038: tests: test_marks.vim leaves swapfiles behind
    
    Problem:  tests: test_marks.vim leaves swapfiles behind
    Solution: Close open buffers using :bw! instead of :close!
    
    closes: #19061
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testdir/test_marks.vim b/src/testdir/test_marks.vim
index 50f005ad1..ed0922144 100644
--- a/src/testdir/test_marks.vim
+++ b/src/testdir/test_marks.vim
@@ -254,7 +254,7 @@ func Test_marks_k_cmd()
   call setline(1, ['foo', 'bar', 'baz', 'qux'])
   1,3kr
   call assert_equal([0, 3, 1, 0], getpos("'r"))
-  close!
+  bw!
 endfunc
 
 " Test for file marks (A-Z)
@@ -307,7 +307,7 @@ func Test_getmarklist()
         \ {'mark': "'[", 'pos': [bufnr(), 2, 1, 0]},
         \ {'mark': "']", 'pos': [bufnr(), 2, v:maxcol, 0]},
         \ ], getmarklist(bufnr())[-2:])
-  close!
+  bw!
 endfunc
 
 " This was using freed memory
diff --git a/src/version.c b/src/version.c
index 95992bcef..76b823a31 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 */
+/**/
+    2038,
 /**/
     2037,
 /**/

-- 
-- 
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/E1vbfEF-00AQWj-5K%40256bit.org.

Raspunde prin e-mail lui