mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-08 08:58:00 +00:00
Make pterm's default window title more sensible.
In the rework last month, term_setup_window_titles made a centralised decision about whether to make the default window title just the application name, or the hostname and application name separated by a dash. Unfortunately it based that decision on whether the hostname was NULL, whereas I'd meant to include a _empty_ hostname as not worth printing. As a result, the default window title for pterm became " - pterm", not just "pterm". Easily fixed.
This commit is contained in:
parent
d7a0835622
commit
ca48e2048c
@ -1775,7 +1775,7 @@ void term_setup_window_titles(Terminal *term, const char *title_hostname)
|
||||
term->window_title = dupstr(conf_title);
|
||||
term->icon_title = dupstr(conf_title);
|
||||
} else {
|
||||
if (title_hostname)
|
||||
if (title_hostname && *title_hostname)
|
||||
term->window_title = dupcat(title_hostname, " - ", appname);
|
||||
else
|
||||
term->window_title = dupstr(appname);
|
||||
|
Loading…
Reference in New Issue
Block a user