mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
vim-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!
4fe7301df9
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -253,7 +253,7 @@ func Test_marks_k_cmd()
|
|||||||
call setline(1, ['foo', 'bar', 'baz', 'qux'])
|
call setline(1, ['foo', 'bar', 'baz', 'qux'])
|
||||||
1,3kr
|
1,3kr
|
||||||
call assert_equal([0, 3, 1, 0], getpos("'r"))
|
call assert_equal([0, 3, 1, 0], getpos("'r"))
|
||||||
close!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test for file marks (A-Z)
|
" Test for file marks (A-Z)
|
||||||
@@ -306,7 +306,7 @@ func Test_getmarklist()
|
|||||||
\ {'mark': "'[", 'pos': [bufnr(), 2, 1, 0]},
|
\ {'mark': "'[", 'pos': [bufnr(), 2, 1, 0]},
|
||||||
\ {'mark': "']", 'pos': [bufnr(), 2, v:maxcol, 0]},
|
\ {'mark': "']", 'pos': [bufnr(), 2, v:maxcol, 0]},
|
||||||
\ ], getmarklist(bufnr())[-2:])
|
\ ], getmarklist(bufnr())[-2:])
|
||||||
close!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" This was using freed memory
|
" This was using freed memory
|
||||||
|
|||||||
Reference in New Issue
Block a user