diff options
| -rw-r--r-- | terminal.c | 4 | ||||
| -rw-r--r-- | terminal.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -3273,7 +3273,7 @@ void term_save_cursor(struct terminal *term) { term->grid->saved_cursor = term->grid->cursor; - term->vt.saved_attrs = term->vt.attrs; + term->grid->saved_attrs = term->vt.attrs; term->saved_charsets = term->charsets; } @@ -3286,7 +3286,7 @@ term_restore_cursor(struct terminal *term, const struct cursor *cursor) term_cursor_to(term, row, col); term->grid->cursor.lcf = cursor->lcf; - term->vt.attrs = term->vt.saved_attrs; + term->vt.attrs = term->grid->saved_attrs; term->charsets = term->saved_charsets; term->bits_affecting_ascii_printer.charset = @@ -233,6 +233,7 @@ struct grid { */ struct cursor cursor; struct cursor saved_cursor; + struct attributes saved_attrs; struct row **rows; struct row *cur_row; @@ -277,7 +278,6 @@ struct vt { uint32_t private; /* LSB=priv0, MSB=priv3 */ struct attributes attrs; - struct attributes saved_attrs; struct { uint8_t *data; |
