render: resize: reset scroll damage

We've resized, and reset the render's 'last-buf' pointer; any scroll
damage we have is **not** valid anymore.
This commit is contained in:
Daniel Eklöf 2020-02-08 18:22:14 +01:00
parent 1b81c700f9
commit fd5782d6e6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1123,7 +1123,8 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
min(term->cursor.point.col, term->cols - 1));
term->render.last_cursor.cell = NULL;
tll_free(term->normal.scroll_damage);
tll_free(term->alt.scroll_damage);
term->render.last_buf = NULL;
term_damage_view(term);
render_refresh(term);