From 709c29c7c4d2b3a7bc81ad6052b567c2ab149cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 26 Jul 2019 18:51:47 +0200 Subject: [PATCH] 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. --- render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c b/render.c index c2610558..98babe38 100644 --- a/render.c +++ b/render.c @@ -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); }