summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-19 23:06:20 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-19 23:06:20 +0200
commit7528d1f6b5422750eb778dfb550cfd0b0e540964 (patch)
tree4282e05be0cf40c3e1920bdb4f2b5abe88e820ff /src/globals.h
parentcd67059c0c3abf1e28aa66458abdf6f338252eb2 (diff)
patch 8.1.2057: the screen.c file is much too bigv8.1.2057
Problem: The screen.c file is much too big. Solution: Split it in three parts. (Yegappan Lakshmanan, closes #4943)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index adf8b63f38..18f7611e2a 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -62,6 +62,31 @@ EXTERN int Screen_mco INIT(= 0); // value of p_mco used when
EXTERN schar_T *ScreenLines2 INIT(= NULL);
/*
+ * Buffer for one screen line (characters and attributes).
+ */
+EXTERN schar_T *current_ScreenLine INIT(= NULL);
+
+/*
+ * Last known cursor position.
+ * Positioning the cursor is reduced by remembering the last position.
+ * Mostly used by windgoto() and screen_char().
+ */
+EXTERN int screen_cur_row INIT(= 0);
+EXTERN int screen_cur_col INIT(= 0);
+
+#ifdef FEAT_SEARCH_EXTRA
+EXTERN match_T screen_search_hl; // used for 'hlsearch' highlight matching
+#endif
+
+#ifdef FEAT_FOLDING
+EXTERN foldinfo_T win_foldinfo; // info for 'foldcolumn'
+#endif
+
+// Flag that is set when drawing for a callback, not from the main command
+// loop.
+EXTERN int redrawing_for_callback INIT(= 0);
+
+/*
* Indexes for tab page line:
* N > 0 for label of tab page N
* N == 0 for no label