multigrid: don't clear window grids on resize

Instead define that the shared top-left part of the grid is preserved.
This commit is contained in:
Björn Linse
2018-09-22 14:50:58 +02:00
parent ba6f9f60ad
commit f77f09ea6e
2 changed files with 12 additions and 14 deletions

View File

@@ -529,7 +529,7 @@ int cursor_valid(void)
*/
void validate_cursor(void)
{
win_grid_alloc(curwin, true); // we need to have w_grid.Rows/Columns updated
win_grid_alloc(curwin, false); // we need to have w_grid.Rows/Columns updated
check_cursor_moved(curwin);
if ((curwin->w_valid & (VALID_WCOL|VALID_WROW)) != (VALID_WCOL|VALID_WROW))
curs_columns(true);