diff options
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/globals.h b/src/globals.h index 43ad8e97e..4973d3191 100644 --- a/src/globals.h +++ b/src/globals.h @@ -558,24 +558,25 @@ EXTERN int clip_unnamed_saved INIT(= 0); EXTERN win_T *firstwin; /* first window */ EXTERN win_T *lastwin; /* last window */ EXTERN win_T *prevwin INIT(= NULL); /* previous window */ -# define ONE_WINDOW (firstwin == lastwin) -# define W_NEXT(wp) ((wp)->w_next) -# define FOR_ALL_WINDOWS(wp) for (wp = firstwin; wp != NULL; wp = wp->w_next) -# define FOR_ALL_FRAMES(frp, first_frame) \ +#define ONE_WINDOW (firstwin == lastwin) +#define W_NEXT(wp) ((wp)->w_next) +#define FOR_ALL_WINDOWS(wp) for (wp = firstwin; wp != NULL; wp = wp->w_next) +#define FOR_ALL_FRAMES(frp, first_frame) \ for (frp = first_frame; frp != NULL; frp = frp->fr_next) -# define FOR_ALL_TABPAGES(tp) for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) -# define FOR_ALL_WINDOWS_IN_TAB(tp, wp) \ +#define FOR_ALL_TABPAGES(tp) for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) +#define FOR_ALL_WINDOWS_IN_TAB(tp, wp) \ for ((wp) = ((tp) == NULL || (tp) == curtab) \ ? firstwin : (tp)->tp_firstwin; (wp); (wp) = (wp)->w_next) /* * When using this macro "break" only breaks out of the inner loop. Use "goto" * to break out of the tabpage loop. */ -# define FOR_ALL_TAB_WINDOWS(tp, wp) \ +#define FOR_ALL_TAB_WINDOWS(tp, wp) \ for ((tp) = first_tabpage; (tp) != NULL; (tp) = (tp)->tp_next) \ for ((wp) = ((tp) == curtab) \ ? firstwin : (tp)->tp_firstwin; (wp); (wp) = (wp)->w_next) + EXTERN win_T *curwin; /* currently active window */ EXTERN win_T *aucmd_win; /* window used in aucmd_prepbuf() */ @@ -1663,4 +1664,5 @@ EXTERN HINSTANCE g_hinst INIT(= NULL); #ifdef FEAT_TEXT_PROP EXTERN int text_prop_frozen INIT(= 0); +EXTERN int popup_visible INIT(= FALSE); #endif |