mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
csi: clear all existing alt damage when switch alt <--> normal
This commit is contained in:
parent
ee476a7e5a
commit
7e4dd2de9a
1 changed files with 6 additions and 0 deletions
6
csi.c
6
csi.c
|
|
@ -586,6 +586,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
if (term->grid != &term->alt) {
|
||||
term->grid = &term->alt;
|
||||
term->saved_cursor = term->cursor;
|
||||
|
||||
tll_free(term->alt.damage);
|
||||
tll_free(term->alt.scroll_damage);
|
||||
term_erase(term, 0, term->rows * term->cols);
|
||||
}
|
||||
break;
|
||||
|
|
@ -645,6 +648,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
term->scroll_region.start = 0;
|
||||
term->scroll_region.end = term->rows;
|
||||
|
||||
tll_free(term->alt.damage);
|
||||
tll_free(term->alt.scroll_damage);
|
||||
|
||||
term_damage_all(term);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue