mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
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:
parent
269e04fa1b
commit
709c29c7c4
1 changed files with 2 additions and 2 deletions
4
render.c
4
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.row, term->rows - 1),
|
||||||
min(term->cursor.col, term->cols - 1));
|
min(term->cursor.col, term->cols - 1));
|
||||||
|
|
||||||
term_damage_all(term);
|
term->render.last_cursor.cell = NULL;
|
||||||
term_damage_view(term);
|
|
||||||
|
|
||||||
|
term_damage_view(term);
|
||||||
render_refresh(term);
|
render_refresh(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue