Problem: PFL_HIDDEN conflicts with system header file.
Solution: Rename to POPF_HIDDEN.
win_T *wp;
for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
- if ((wp->w_popup_flags & PFL_HIDDEN) == 0)
+ if ((wp->w_popup_flags & POPF_HIDDEN) == 0)
return TRUE;
for (wp = curtab->tp_first_popupwin; wp != NULL; wp = wp->w_next)
- if ((wp->w_popup_flags & PFL_HIDDEN) == 0)
+ if ((wp->w_popup_flags & POPF_HIDDEN) == 0)
return TRUE;
return FALSE;
}
int id = (int)tv_get_number(argvars);
win_T *wp = find_popup_win(id);
- if (wp != NULL && (wp->w_popup_flags & PFL_HIDDEN) == 0)
+ if (wp != NULL && (wp->w_popup_flags & POPF_HIDDEN) == 0)
{
- wp->w_popup_flags |= PFL_HIDDEN;
+ wp->w_popup_flags |= POPF_HIDDEN;
redraw_all_later(NOT_VALID);
}
}
int id = (int)tv_get_number(argvars);
win_T *wp = find_popup_win(id);
- if (wp != NULL && (wp->w_popup_flags & PFL_HIDDEN) != 0)
+ if (wp != NULL && (wp->w_popup_flags & POPF_HIDDEN) != 0)
{
- wp->w_popup_flags &= ~PFL_HIDDEN;
+ wp->w_popup_flags &= ~POPF_HIDDEN;
redraw_all_later(NOT_VALID);
}
}
// Reset all the VALID_POPUP flags.
for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
- wp->w_popup_flags &= ~PFL_REDRAWN;
+ wp->w_popup_flags &= ~POPF_REDRAWN;
for (wp = curtab->tp_first_popupwin; wp != NULL; wp = wp->w_next)
- wp->w_popup_flags &= ~PFL_REDRAWN;
+ wp->w_popup_flags &= ~POPF_REDRAWN;
// TODO: don't redraw every popup every time.
for (;;)
lowest_zindex = INT_MAX;
lowest_wp = NULL;
for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
- if ((wp->w_popup_flags & (PFL_REDRAWN|PFL_HIDDEN)) == 0
+ if ((wp->w_popup_flags & (POPF_REDRAWN|POPF_HIDDEN)) == 0
&& wp->w_zindex < lowest_zindex)
{
lowest_zindex = wp->w_zindex;
lowest_wp = wp;
}
for (wp = curtab->tp_first_popupwin; wp != NULL; wp = wp->w_next)
- if ((wp->w_popup_flags & (PFL_REDRAWN|PFL_HIDDEN)) == 0
+ if ((wp->w_popup_flags & (POPF_REDRAWN|POPF_HIDDEN)) == 0
&& wp->w_zindex < lowest_zindex)
{
lowest_zindex = wp->w_zindex;
if (lowest_wp == NULL)
break;
win_update(lowest_wp);
- lowest_wp->w_popup_flags |= PFL_REDRAWN;
+ lowest_wp->w_popup_flags |= POPF_REDRAWN;
}
}
#endif
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1408,
/**/
1407,
/**/
#define VALID_TOPLINE 0x80 // w_topline is valid (for cursor position)
// Values for w_popup_flags.
-#define PFL_HIDDEN 1 // popup is not displayed
-#define PFL_REDRAWN 2 // popup was just redrawn
+#define POPF_HIDDEN 1 // popup is not displayed
+#define POPF_REDRAWN 2 // popup was just redrawn
/*
* Terminal highlighting attribute bits.