diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-03-14 08:35:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 08:35:48 +0100 |
commit | 3c8583e43bcb644d75c17c072ddf6f067439fde1 (patch) | |
tree | 5bff3f568eeefe2cdac24bea446dbc6ca6f14e4e /src/nvim/grid_defs.h | |
parent | 314b222c25f1f21713082d3cb17f5fa442a8b3ec (diff) | |
parent | 8fe19d9d89d90eed347d9bfeb99446c0f400cca1 (diff) | |
download | rneovim-3c8583e43bcb644d75c17c072ddf6f067439fde1.tar.gz rneovim-3c8583e43bcb644d75c17c072ddf6f067439fde1.tar.bz2 rneovim-3c8583e43bcb644d75c17c072ddf6f067439fde1.zip |
Merge pull request #14020 from chentau/float_resize
Update lines after shrinking floating window
Diffstat (limited to 'src/nvim/grid_defs.h')
-rw-r--r-- | src/nvim/grid_defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/grid_defs.h b/src/nvim/grid_defs.h index e14aae73d8..752be4f5a8 100644 --- a/src/nvim/grid_defs.h +++ b/src/nvim/grid_defs.h @@ -76,6 +76,12 @@ typedef struct { int comp_row; int comp_col; + // Requested width and height of the grid upon resize. Used by + // `ui_compositor` to correctly determine which regions need to + // be redrawn. + int comp_width; + int comp_height; + // z-index of the grid. Grids with higher index is draw on top. // default_grid.comp_index is always zero. size_t comp_index; @@ -86,6 +92,6 @@ typedef struct { } ScreenGrid; #define SCREEN_GRID_INIT { 0, NULL, NULL, NULL, NULL, NULL, 0, 0, false, \ - false, 0, 0, false, true, 0, 0, 0, false } + false, 0, 0, false, true, 0, 0, 0, 0, 0, false } #endif // NVIM_GRID_DEFS_H |