neovim

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

commit b7efbbec51158be2b1969a71e18a27de096ad7db
parent 01177619bc9f1fd41012fbb527164861bf4f2837
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  3 Jan 2026 07:43:04 +0800

vim-patch:9.1.2041: tests: test_menu.vim leaves swapfiles behind

Problem:  tests: test_menu.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

https://github.com/vim/vim/commit/7f5c60b31e9f04beb149e256486eb69bfb47ad39

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

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

diff --git a/test/old/testdir/test_menu.vim b/test/old/testdir/test_menu.vim @@ -426,7 +426,7 @@ func Test_menu_special() call feedkeys(":emenu n Test.Sign\<CR>", 'x') call assert_equal("m\tn", getline(1)) set cpo-=< - close! + bw! nunmenu Test.Sign endfunc @@ -464,7 +464,7 @@ func Test_emenu_cmd() 2emenu Test.foo call assert_equal(['aaaa', 'xxxx'], getline(1, 2)) xunmenu Test.foo - close! + bw! endfunc " Test for PopUp menus