patch 9.1.1941: tests: Test_execute_register() leaves swapfile behind

Commit: 
https://github.com/vim/vim/commit/791478b30ae48f14e297b4f79dc49380ace99fac
Author: Christian Brabandt <[email protected]>
Date:   Sun Nov 30 15:22:40 2025 +0000

    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 <[email protected]>

diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim
index 091036963..245340c82 100644
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -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')
diff --git a/src/version.c b/src/version.c
index 392e83370..a8bff776a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1941,
 /**/
     1940,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vPjNF-009fqf-7Z%40256bit.org.

Raspunde prin e-mail lui