term: reset: set title to the user configured title, not "foot"

This commit is contained in:
Daniel Eklöf 2020-06-22 14:33:16 +02:00
parent e466063020
commit bae11000cc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 2 deletions

View file

@ -66,6 +66,7 @@
* Do not auto-resize a sixel image for which the cllent has specified
a size. This fixes an issue where an image would incorrectly
overflow into the cell row beneath.
* Window title always being set to "foot" on reset.
### Security

View file

@ -1301,8 +1301,7 @@ term_reset(struct terminal *term, bool hard)
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");
term_set_window_title(term, term->conf->title);
term->scroll_region.start = 0;
term->scroll_region.end = term->rows;