aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--terminal.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7753da42..26a15465 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/terminal.c b/terminal.c
index cbd9d51b..dd0c8c81 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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;