neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 01177619bc9f1fd41012fbb527164861bf4f2837
parent 067b5743f543798f4e58003816fc930f4106c2b0
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  3 Jan 2026 07:42:53 +0800

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!

https://github.com/vim/vim/commit/4fe7301df9bd02308cbea043f58aed56bf4639da

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Mtest/old/testdir/test_marks.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/old/testdir/test_marks.vim b/test/old/testdir/test_marks.vim @@ -253,7 +253,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) @@ -306,7 +306,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