diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-06-09 19:14:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-06-09 19:14:24 +0200 |
commit | 7098ee5c37e35494ed36f3ad2d1c305341a41a45 (patch) | |
tree | dbe2fa1707f573493798d74dbe03020306fbf4da /src/gui_mac.c | |
parent | bc56336bb4501884257352446abb60713cef6452 (diff) | |
download | vim-7098ee5c37e35494ed36f3ad2d1c305341a41a45.zip |
patch 7.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.c | 3 |
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); |