mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -3865,10 +3865,14 @@ send_tabline_menu_event(int tabidx, int event)
|
||||
{
|
||||
char_u string[3];
|
||||
|
||||
/* Don't put events in the input queue now. */
|
||||
// Don't put events in the input queue now.
|
||||
if (hold_gui_events)
|
||||
return;
|
||||
|
||||
// Cannot close the last tabpage.
|
||||
if (event == TABLINE_MENU_CLOSE && first_tabpage->tp_next == NULL)
|
||||
return;
|
||||
|
||||
string[0] = CSI;
|
||||
string[1] = KS_TABMENU;
|
||||
string[2] = KE_FILLER;
|
||||
|
Reference in New Issue
Block a user