]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2038: tests: test_marks.vim leaves swapfiles behind v9.1.2038
authorChristian Brabandt <cb@256bit.org>
Thu, 1 Jan 2026 16:20:08 +0000 (16:20 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 1 Jan 2026 16:20:08 +0000 (16:20 +0000)
Problem:  tests: test_marks.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

closes: #19061

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_marks.vim
src/version.c

index 50f005ad18873567d62bcf13af40d95538518d8b..ed09221449054b4ae4b93558ce96bf4f16fce390 100644 (file)
@@ -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
index 95992bcef7c45679b50132787fec4c3dcaa276bf..76b823a31e65327af28c0bd87503f21e25879b70 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2038,
 /**/
     2037,
 /**/