forked from aniani/vim
patch 8.1.0577: tabpage right-click menu never shows "Close tab"
Problem: Tabpage right-click menu never shows "Close tab". Solution: Always create the "Close tab" item but ignore the event if there is only one tab.
This commit is contained in:
@@ -3337,9 +3337,7 @@ create_tabline_menu(void)
|
||||
GtkWidget *menu;
|
||||
|
||||
menu = gtk_menu_new();
|
||||
if (first_tabpage->tp_next != NULL)
|
||||
add_tabline_menu_item(menu, (char_u *)_("Close tab"),
|
||||
TABLINE_MENU_CLOSE);
|
||||
add_tabline_menu_item(menu, (char_u *)_("Close tab"), TABLINE_MENU_CLOSE);
|
||||
add_tabline_menu_item(menu, (char_u *)_("New tab"), TABLINE_MENU_NEW);
|
||||
add_tabline_menu_item(menu, (char_u *)_("Open Tab..."), TABLINE_MENU_OPEN);
|
||||
|
||||
|
Reference in New Issue
Block a user