mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user