render: reset "last cursor" when resizing

The cell pointer is likely invalid since we realloc the
grids. Besides. we're redrawing the entire window anyway.
This commit is contained in:
Daniel Eklöf 2019-07-26 18:51:47 +02:00
parent 269e04fa1b
commit 709c29c7c4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -718,9 +718,9 @@ render_resize(struct terminal *term, int width, int height)
min(term->cursor.row, term->rows - 1),
min(term->cursor.col, term->cols - 1));
term_damage_all(term);
term_damage_view(term);
term->render.last_cursor.cell = NULL;
term_damage_view(term);
render_refresh(term);
}