mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
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
791478b30a
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -561,7 +561,7 @@ func Test_execute_register()
|
|||||||
new
|
new
|
||||||
call feedkeys("@=\<BS>ax\<CR>y", 'xt')
|
call feedkeys("@=\<BS>ax\<CR>y", 'xt')
|
||||||
call assert_equal(['x', 'y'], getline(1, '$'))
|
call assert_equal(['x', 'y'], getline(1, '$'))
|
||||||
close!
|
bw!
|
||||||
|
|
||||||
" cannot execute a register in operator pending mode
|
" cannot execute a register in operator pending mode
|
||||||
call assert_beeps('normal! c@r')
|
call assert_beeps('normal! c@r')
|
||||||
|
|||||||
Reference in New Issue
Block a user