mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
patch 9.0.0657: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the +cmdwin feature. Now the tiny and small builds are
equal, drop the small build. (Martin Tournoij, closes #11268)
This commit is contained in:
committed by
Bram Moolenaar
parent
4ba5f1dab6
commit
7904fa420e
@@ -228,15 +228,19 @@ tabline_menu_cb(
|
||||
return;
|
||||
}
|
||||
|
||||
if (event->button == Button2)
|
||||
{
|
||||
// Middle mouse click on tabpage label closes that tab.
|
||||
XtVaGetValues(tabLine_menu, XmNuserData, &tab_idx, NULL);
|
||||
send_tabline_menu_event(tab_idx, (int)TABLINE_MENU_CLOSE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event->button != Button3)
|
||||
return;
|
||||
|
||||
// When ignoring events don't show the menu.
|
||||
if (hold_gui_events
|
||||
# ifdef FEAT_CMDWIN
|
||||
|| cmdwin_type != 0
|
||||
# endif
|
||||
)
|
||||
if (hold_gui_events || cmdwin_type != 0)
|
||||
return;
|
||||
|
||||
if (event->subwindow != None)
|
||||
|
||||
Reference in New Issue
Block a user