From bae11000ccf287f221ff5df095a0d5781c398d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 22 Jun 2020 14:33:16 +0200 Subject: [PATCH] term: reset: set title to the user configured title, not "foot" --- CHANGELOG.md | 1 + terminal.c | 3 +-- 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;