diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-01 20:08:25 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-03 14:58:25 +0200 |
commit | 197827321a39168dbaa143c9f7b4f5db668f893c (patch) | |
tree | 59df2204df7c47c19b611417319bd804b3c8bbe4 /src | |
parent | 066db5e7cdaadfb1d2971bdc4b9200f14737d7b6 (diff) | |
download | rneovim-197827321a39168dbaa143c9f7b4f5db668f893c.tar.gz rneovim-197827321a39168dbaa143c9f7b4f5db668f893c.tar.bz2 rneovim-197827321a39168dbaa143c9f7b4f5db668f893c.zip |
fix(tui): grid_clear properly clears the screen
Problem: When setting a shell size smaller than the containing
terminal window through `:winsize` or `:set lines/columns`
the screen is not properly cleared.
Solution: Clear the tui dimensions rather than the grid dimensions.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/tui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 975ad375a0..0d661d2b58 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -977,7 +977,7 @@ void tui_grid_clear(TUIData *tui, Integer g) UGrid *grid = &tui->grid; ugrid_clear(grid); kv_size(tui->invalid_regions) = 0; - clear_region(tui, 0, grid->height, 0, grid->width, 0); + clear_region(tui, 0, tui->height, 0, tui->width, 0); } void tui_grid_cursor_goto(TUIData *tui, Integer grid, Integer row, Integer col) |