patch 9.1.1294: gui tabline menu does not use confirm when closing tabs

Commit: 
https://github.com/vim/vim/commit/bc27b6e34fa9228ac468973e1b1b80506fdc177a
Author: JMcKiern <jmcki...@tcd.ie>
Date:   Sat Apr 12 11:51:00 2025 +0200

    patch 9.1.1294: gui tabline menu does not use confirm when closing tabs
    
    Problem:  gui tabline menu does not use confirm when closing tabs
    Solution: use ":confirm tabclose" explicitly (JMcKiern)
    
    closes: #17093
    
    Signed-off-by: JMcKiern <jmcki...@tcd.ie>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/normal.c b/src/normal.c
index e7915d6ff..6cd9004ad 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -3074,10 +3074,10 @@ handle_tabmenu(void)
     {
        case TABLINE_MENU_CLOSE:
            if (current_tab == 0)
-               do_cmdline_cmd((char_u *)"tabclose");
+               do_cmdline_cmd((char_u *)"confirm tabclose");
            else
            {
-               vim_snprintf((char *)IObuff, IOSIZE, "tabclose %d",
+               vim_snprintf((char *)IObuff, IOSIZE, "confirm tabclose %d",
                                                                 current_tab);
                do_cmdline_cmd(IObuff);
            }
diff --git a/src/version.c b/src/version.c
index 726629cde..2e2debb9d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1294,
 /**/
     1293,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1u3Xed-00FqMh-2t%40256bit.org.

Raspunde prin e-mail lui