summaryrefslogtreecommitdiff
path: root/src/gui_mac.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-06-09 19:14:24 +0200
committerBram Moolenaar <Bram@vim.org>2015-06-09 19:14:24 +0200
commit7098ee5c37e35494ed36f3ad2d1c305341a41a45 (patch)
treedbe2fa1707f573493798d74dbe03020306fbf4da /src/gui_mac.c
parentbc56336bb4501884257352446abb60713cef6452 (diff)
downloadvim-git-7098ee5c37e35494ed36f3ad2d1c305341a41a45.tar.gz
patch 7.4.731v7.4.731
Problem: The tab menu shows "Close tab" even when it doesn't work. Solution: Don't show "Close tab" for the last tab. (John Marriott)
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r--src/gui_mac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c
index 54087c518..3479dbb55 100644
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -6819,7 +6819,8 @@ initialise_tabline(void)
// create tabline popup menu required by vim docs (see :he tabline-menu)
CreateNewMenu(kTabContextMenuId, 0, &contextMenu);
- AppendMenuItemTextWithCFString(contextMenu, CFSTR("Close"), 0,
+ if (first_tabpage->tp_next != NULL)
+ AppendMenuItemTextWithCFString(contextMenu, CFSTR("Close Tab"), 0,
TABLINE_MENU_CLOSE, NULL);
AppendMenuItemTextWithCFString(contextMenu, CFSTR("New Tab"), 0,
TABLINE_MENU_NEW, NULL);