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

12 views
Skip to first unread message

Christian Brabandt

unread,
Apr 12, 2025, 6:00:13 AM4/12/25
to vim...@googlegroups.com
patch 9.1.1294: gui tabline menu does not use confirm when closing tabs

Commit: https://github.com/vim/vim/commit/bc27b6e34fa9228ac468973e1b1b80506fdc177a
Author: JMcKiern <jmck...@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 <jmck...@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,
/**/
Reply all
Reply to author
Forward
0 new messages