Skip to content

Commit 4fe7301

Browse files
committed
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 <cb@256bit.org>
1 parent 62d8f3d commit 4fe7301

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/testdir/test_marks.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func Test_marks_k_cmd()
254254
call setline(1, ['foo', 'bar', 'baz', 'qux'])
255255
1,3kr
256256
call assert_equal([0, 3, 1, 0], getpos("'r"))
257-
close!
257+
bw!
258258
endfunc
259259

260260
" Test for file marks (A-Z)
@@ -307,7 +307,7 @@ func Test_getmarklist()
307307
\ {'mark': "'[", 'pos': [bufnr(), 2, 1, 0]},
308308
\ {'mark': "']", 'pos': [bufnr(), 2, v:maxcol, 0]},
309309
\ ], getmarklist(bufnr())[-2:])
310-
close!
310+
bw!
311311
endfunc
312312

313313
" This was using freed memory

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2038,
737739
/**/
738740
2037,
739741
/**/

0 commit comments

Comments
 (0)