multigrid: introduce grid abstraction

This commit is contained in:
Björn Linse
2017-11-05 11:33:31 +01:00
parent ccbcd390d4
commit c9b559a030
6 changed files with 94 additions and 71 deletions

View File

@@ -128,12 +128,6 @@ typedef off_t off_T;
# endif
#endif
/*
* The characters and attributes cached for the screen.
*/
typedef char_u schar_T[(MAX_MCO+1) * 4 + 1];
typedef int16_t sattr_T;
/// ScreenLines[] contains a copy of the whole screen, as it currently is
/// displayed. It is a single block of screen cells, the size of the screen
/// plus one line. The extra line used as a buffer while redrawing a window
@@ -167,6 +161,8 @@ EXTERN char_u *LineWraps INIT(= NULL); /* line wraps to next line */
EXTERN int screen_Rows INIT(= 0); /* actual size of ScreenLines[] */
EXTERN int screen_Columns INIT(= 0); /* actual size of ScreenLines[] */
EXTERN ScreenGrid default_grid INIT(= { 0 });
/*
* When vgetc() is called, it sets mod_mask to the set of modifiers that are
* held down based on the MOD_MASK_* symbols that are read first.