diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-08 13:04:18 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-05-08 13:22:09 +0200 |
commit | df41d884a7b788bb38060e732f1a7abb08de7b1b (patch) | |
tree | c7687eef00b35bdc02ba37437a70b7c37dda4026 /src/nvim/screen.h | |
parent | 0d3f17a6c317b26cdc319b48e25e1574f3a0e9fd (diff) | |
download | rneovim-df41d884a7b788bb38060e732f1a7abb08de7b1b.tar.gz rneovim-df41d884a7b788bb38060e732f1a7abb08de7b1b.tar.bz2 rneovim-df41d884a7b788bb38060e732f1a7abb08de7b1b.zip |
refactor(grid): move out grid_* functions from screen.c
Also normalize some types. use "size_t" for unsigned array offsets.
Fix -Wconversion issues missed as screen.c is missing this check.
Diffstat (limited to 'src/nvim/screen.h')
-rw-r--r-- | src/nvim/screen.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nvim/screen.h b/src/nvim/screen.h index 33b713e756..3afbaa5eb6 100644 --- a/src/nvim/screen.h +++ b/src/nvim/screen.h @@ -4,7 +4,7 @@ #include <stdbool.h> #include "nvim/buffer_defs.h" -#include "nvim/grid_defs.h" +#include "nvim/grid.h" #include "nvim/pos.h" #include "nvim/types.h" @@ -27,17 +27,6 @@ typedef enum { WC_BOTTOM_RIGHT, } WindowCorner; -/// By default, all windows are drawn 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(= SCREEN_GRID_INIT); - -#define DEFAULT_GRID_HANDLE 1 // handle for the default_grid - // Maximum columns for terminal highlight attributes #define TERM_ATTRS_MAX 1024 |