0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

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 <jmckiern@tcd.ie>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
JMcKiern 2025-04-12 11:51:00 +02:00 committed by Christian Brabandt
parent ab2fe65fbf
commit bc27b6e34f
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1294,
/**/
1293,
/**/