]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1941: tests: Test_execute_register() leaves swapfile behind v9.1.1941
authorChristian Brabandt <cb@256bit.org>
Sun, 30 Nov 2025 15:22:40 +0000 (15:22 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 30 Nov 2025 15:22:40 +0000 (15:22 +0000)
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>
src/testdir/test_registers.vim
src/version.c

index 0910369633c18a149aedd70306831933a87bdcea..245340c82a013437a08076ba9d2100ec8c795553 100644 (file)
@@ -614,7 +614,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')
index 392e833708e1e29ddd649855426ca8bf74c0867e..a8bff776af94d34fbe76c91ed5027ffcc71fb190 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1941,
 /**/
     1940,
 /**/