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

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-11-30 15:22:40 +00:00
parent aa133f8b3e
commit 791478b30a
2 changed files with 3 additions and 1 deletions

View File

@ -614,7 +614,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')

View File

@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1941,
/**/ /**/
1940, 1940,
/**/ /**/