mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04: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:
parent
ab2fe65fbf
commit
bc27b6e34f
@ -3074,10 +3074,10 @@ handle_tabmenu(void)
|
|||||||
{
|
{
|
||||||
case TABLINE_MENU_CLOSE:
|
case TABLINE_MENU_CLOSE:
|
||||||
if (current_tab == 0)
|
if (current_tab == 0)
|
||||||
do_cmdline_cmd((char_u *)"tabclose");
|
do_cmdline_cmd((char_u *)"confirm tabclose");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vim_snprintf((char *)IObuff, IOSIZE, "tabclose %d",
|
vim_snprintf((char *)IObuff, IOSIZE, "confirm tabclose %d",
|
||||||
current_tab);
|
current_tab);
|
||||||
do_cmdline_cmd(IObuff);
|
do_cmdline_cmd(IObuff);
|
||||||
}
|
}
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1294,
|
||||||
/**/
|
/**/
|
||||||
1293,
|
1293,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user