mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04: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
@@ -3844,11 +3844,7 @@ send_tabline_event(int nr)
|
||||
return FALSE;
|
||||
|
||||
// Don't put events in the input queue now.
|
||||
if (hold_gui_events
|
||||
# ifdef FEAT_CMDWIN
|
||||
|| cmdwin_type != 0
|
||||
# endif
|
||||
)
|
||||
if (hold_gui_events || cmdwin_type != 0)
|
||||
{
|
||||
// Set it back to the current tab page.
|
||||
gui_mch_set_curtab(tabpage_index(curtab));
|
||||
@@ -3993,10 +3989,8 @@ gui_drag_scrollbar(scrollbar_T *sb, long value, int still_dragging)
|
||||
if (hold_gui_events)
|
||||
return;
|
||||
|
||||
#ifdef FEAT_CMDWIN
|
||||
if (cmdwin_type != 0 && sb->wp != curwin)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (still_dragging)
|
||||
{
|
||||
|
Reference in New Issue
Block a user