diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-11 20:39:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-11 20:39:19 +0100 |
commit | 295471920def98ce84bc96e5d97c16d250c81621 (patch) | |
tree | 7490f90afb9d639216c80a4942629a19510654ab /src/gui_gtk_x11.c | |
parent | 30700cd5ffa258f1d684ab6b34bd03e970450dba (diff) | |
download | vim-git-295471920def98ce84bc96e5d97c16d250c81621.tar.gz |
patch 8.1.0577: tabpage right-click menu never shows "Close tab"v8.1.0577
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.
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index dbddb0ffb..898e2af5f 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -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); |