neovim

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

commit 7452a8a568926a60b5b7038b6a4a49c4e29893c1
parent 6456a7cd1e5995158e41f6569e7a457f0b44e09d
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed,  3 Dec 2025 08:59:54 +0800

vim-patch:9.1.1941: tests: Test_execute_register() leaves swapfile behind

Problem:  tests: Test_execute_register() leaves swapfile behind
Solution: Use :bw instead of :close to close the buffer completely

https://github.com/vim/vim/commit/791478b30ae48f14e297b4f79dc49380ace99fac

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

Diffstat:
Mtest/old/testdir/test_registers.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/old/testdir/test_registers.vim b/test/old/testdir/test_registers.vim @@ -561,7 +561,7 @@ func Test_execute_register() new call feedkeys("@=\<BS>ax\<CR>y", 'xt') call assert_equal(['x', 'y'], getline(1, '$')) - close! + bw! " cannot execute a register in operator pending mode call assert_beeps('normal! c@r')