term: make sure to update 'current row' when restoring saved cursor

This commit is contained in:
Daniel Eklöf 2019-07-23 17:57:07 +02:00
parent f7519b5725
commit f5a6304850
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 20 additions and 3 deletions

2
vt.c
View file

@ -597,7 +597,7 @@ esc_dispatch(struct terminal *term, uint8_t final)
break;
case '8':
term->cursor = term->saved_cursor;
term_restore_cursor(term);
term->vt.attrs = term->vt.saved_attrs;
break;