aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/screen.h')
-rw-r--r--src/nvim/screen.h13
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 {