diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-23 14:35:23 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-12-31 16:24:07 +0100 |
commit | 1cec5542a83baf04848e37475b9b0b7f50e47284 (patch) | |
tree | b3ce77a147675ea07f95d9a237ca591fd4e2a0ad /src/nvim/screen.h | |
parent | 820c81e638768994f4e51fdb87eadf31664048ff (diff) | |
download | rneovim-1cec5542a83baf04848e37475b9b0b7f50e47284.tar.gz rneovim-1cec5542a83baf04848e37475b9b0b7f50e47284.tar.bz2 rneovim-1cec5542a83baf04848e37475b9b0b7f50e47284.zip |
multigrid: reorganize types and global varaibles
Diffstat (limited to 'src/nvim/screen.h')
-rw-r--r-- | src/nvim/screen.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/screen.h b/src/nvim/screen.h index 17515d4253..109541ef07 100644 --- a/src/nvim/screen.h +++ b/src/nvim/screen.h @@ -5,6 +5,7 @@ #include "nvim/types.h" #include "nvim/buffer_defs.h" +#include "nvim/grid_defs.h" #include "nvim/pos.h" /* @@ -20,6 +21,18 @@ #define NOT_VALID 40 /* buffer needs complete redraw */ #define CLEAR 50 /* screen messed up, clear it */ +/// By default, all widows are draw on a single rectangular grid, represented by +/// this ScreenGrid instance. In multigrid mode each window will have its own +/// grid, then this is only used for global screen elements that hasn't been +/// externalized. +/// +/// Note: before the screen is initialized and when out of memory these can be +/// NULL. +EXTERN ScreenGrid default_grid INIT(= { 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, + 0, 0, 0 }); + +#define DEFAULT_GRID_HANDLE 1 // handle for the default_grid + /// Status line click definition typedef struct { enum { |