term: save/restore charsets on save/restore cursor+attributes

This commit is contained in:
Daniel Eklöf 2019-11-17 10:02:46 +01:00
parent 3f3feedde2
commit c9ebd527cf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 6 deletions

View file

@ -828,6 +828,7 @@ term_reset(struct terminal *term, bool hard)
term->charsets.set[1] = CHARSET_ASCII;
term->charsets.set[2] = CHARSET_ASCII;
term->charsets.set[3] = CHARSET_ASCII;
term->saved_charsets = term->charsets;
tll_free_and_free(term->window_title_stack, free);
free(term->window_title);
term->window_title = strdup("foot");