diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-07 17:51:40 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-07 17:51:40 +0000 |
| commit | 6f1f1f5614930e1b2e513b982e7d28e3f26db7ae (patch) | |
| tree | 9d68b8d95483f165521f479caba872d6a41c6d5a /terminal.c | |
| parent | term: rows printed to now defaults to having a hard linebreak (diff) | |
| parent | config: add locked-title=no|yes (diff) | |
Merge branch 'locked-title'
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2634,9 +2634,13 @@ term_xcursor_update(struct terminal *term) void term_set_window_title(struct terminal *term, const char *title) { + if (term->conf->locked_title && term->window_title_has_been_set) + return; + free(term->window_title); term->window_title = xstrdup(title); render_refresh_title(term); + term->window_title_has_been_set = true; } void |
