comparison src/gui_mac.c @ 15134:f2972ff144ab v8.1.0577

patch 8.1.0577: tabpage right-click menu never shows "Close tab" commit https://github.com/vim/vim/commit/295471920def98ce84bc96e5d97c16d250c81621 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 11 20:39:19 2018 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 11 Dec 2018 20:45:06 +0100
parents 6e4e0d43b20b
children 55ccc2d353bd
comparison
equal deleted inserted replaced
15133:b5c9b7b790cd 15134:f2972ff144ab
6703 6703
6704 AddDataBrowserListViewColumn(dataBrowser, &colDesc, 0); 6704 AddDataBrowserListViewColumn(dataBrowser, &colDesc, 0);
6705 6705
6706 // create tabline popup menu required by vim docs (see :he tabline-menu) 6706 // create tabline popup menu required by vim docs (see :he tabline-menu)
6707 CreateNewMenu(kTabContextMenuId, 0, &contextMenu); 6707 CreateNewMenu(kTabContextMenuId, 0, &contextMenu);
6708 if (first_tabpage->tp_next != NULL) 6708 AppendMenuItemTextWithCFString(contextMenu, CFSTR("Close Tab"), 0,
6709 AppendMenuItemTextWithCFString(contextMenu, CFSTR("Close Tab"), 0,
6710 TABLINE_MENU_CLOSE, NULL); 6709 TABLINE_MENU_CLOSE, NULL);
6711 AppendMenuItemTextWithCFString(contextMenu, CFSTR("New Tab"), 0, 6710 AppendMenuItemTextWithCFString(contextMenu, CFSTR("New Tab"), 0,
6712 TABLINE_MENU_NEW, NULL); 6711 TABLINE_MENU_NEW, NULL);
6713 AppendMenuItemTextWithCFString(contextMenu, CFSTR("Open Tab..."), 0, 6712 AppendMenuItemTextWithCFString(contextMenu, CFSTR("Open Tab..."), 0,
6714 TABLINE_MENU_OPEN, NULL); 6713 TABLINE_MENU_OPEN, NULL);