summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-16 22:11:02 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-16 22:11:02 +0000
commitf740b29ae2a346e44c34001b3bf8ecfa0c7857bd (patch)
tree5b62807af1359d3df97367448927cdbb53969448 /src/globals.h
parent4c7ed462cb7813730b4f15f9cb09f1b26d097fca (diff)
updated for version 7.0199v7.0199
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index 57d7d09228..c6409b96bb 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -42,7 +42,7 @@ EXTERN long Columns INIT(= 80); /* nr of columns in the screen */
EXTERN schar_T *ScreenLines INIT(= NULL);
EXTERN sattr_T *ScreenAttrs INIT(= NULL);
EXTERN unsigned *LineOffset INIT(= NULL);
-EXTERN char_u *LineWraps INIT(= NULL);
+EXTERN char_u *LineWraps INIT(= NULL); /* line wraps to next line */
#ifdef FEAT_MBYTE
/*
@@ -61,6 +61,10 @@ EXTERN u8char_T *ScreenLinesC2 INIT(= NULL); /* second composing char */
EXTERN schar_T *ScreenLines2 INIT(= NULL);
#endif
+#ifdef FEAT_WINDOWS
+EXTERN char_u *TabPageIdxs INIT(= NULL); /* indexes for tab page line */
+#endif
+
EXTERN int screen_Rows INIT(= 0); /* actual size of ScreenLines[] */
EXTERN int screen_Columns INIT(= 0); /* actual size of ScreenLines[] */
@@ -482,6 +486,10 @@ EXTERN win_T *lastwin; /* last window */
EXTERN win_T *prevwin INIT(= NULL); /* previous window */
# define W_NEXT(wp) ((wp)->w_next)
# define FOR_ALL_WINDOWS(wp) for (wp = firstwin; wp != NULL; wp = wp->w_next)
+#define FOR_ALL_TAB_WINDOWS(tp, wp) \
+ for ((tp) = first_tabpage; (tp) != NULL; (tp) = (tp)->tp_next) \
+ for ((wp) = ((tp)->tp_topframe == topframe) \
+ ? firstwin : (tp)->tp_firstwin; (wp); (wp) = (wp)->w_next)
#else
# define firstwin curwin
# define lastwin curwin