csi: up to application to restore scroll region on alt switch?

This commit is contained in:
Daniel Eklöf 2019-07-03 08:37:16 +02:00
parent dfaa5f5640
commit 0fef48c1fd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
csi.c
View file

@ -645,13 +645,8 @@ csi_dispatch(struct terminal *term, uint8_t final)
term->grid = &term->normal;
term->cursor = term->saved_cursor;
term_cursor_to(term, term->cursor.row, term->cursor.col);
/* Should these be restored from saved values? */
term->scroll_region.start = 0;
term->scroll_region.end = term->rows;
tll_free(term->alt.damage);
tll_free(term->alt.scroll_damage);