Mercurial > vim
diff src/globals.h @ 18124:2a806e3c39f6 v8.1.2057
patch 8.1.2057: the screen.c file is much too big
Commit: https://github.com/vim/vim/commit/7528d1f6b5422750eb778dfb550cfd0b0e540964
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 19 23:06:20 2019 +0200
patch 8.1.2057: the screen.c file is much too big
Problem: The screen.c file is much too big.
Solution: Split it in three parts. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4943)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 19 Sep 2019 23:15:05 +0200 |
parents | 8f4cc259ed7a |
children | 770987511384 |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -62,6 +62,31 @@ EXTERN int Screen_mco INIT(= 0); // val 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