From bc27b6e34fa9228ac468973e1b1b80506fdc177a Mon Sep 17 00:00:00 2001 From: JMcKiern Date: Sat, 12 Apr 2025 11:51:00 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/normal.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/normal.c b/src/normal.c index e7915d6ff8..6cd9004ad1 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 726629cdeb..2e2debb9d8 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, /**/