Mercurial > vim
comparison src/gui_w48.c @ 6819:5f24d6d51333 v7.4.731
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 09 Jun 2015 19:14:24 +0200 |
parents | 121613e72e39 |
children | fa95595fbc52 |
comparison
equal
deleted
inserted
replaced
6818:50b60e51a231 | 6819:5f24d6d51333 |
---|---|
2387 | 2387 |
2388 tab_pmenu = CreatePopupMenu(); | 2388 tab_pmenu = CreatePopupMenu(); |
2389 if (tab_pmenu == NULL) | 2389 if (tab_pmenu == NULL) |
2390 return; | 2390 return; |
2391 | 2391 |
2392 add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_CLOSE, _("Close tab")); | 2392 if (first_tabpage->tp_next != NULL) |
2393 add_tabline_popup_menu_entry(tab_pmenu, | |
2394 TABLINE_MENU_CLOSE, _("Close tab")); | |
2393 add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_NEW, _("New tab")); | 2395 add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_NEW, _("New tab")); |
2394 add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_OPEN, | 2396 add_tabline_popup_menu_entry(tab_pmenu, TABLINE_MENU_OPEN, |
2395 _("Open tab...")); | 2397 _("Open tab...")); |
2396 | 2398 |
2397 GetCursorPos(&pt); | 2399 GetCursorPos(&pt); |