Instead of passing titles through vis() which doubles backslashes, just

ignore any containing control characters or invalid UTF-8. GitHub issue 2070.
This commit is contained in:
nicm
2020-02-03 13:46:27 +00:00
parent 87bcc0c7e0
commit 265164d251
4 changed files with 13 additions and 12 deletions

View File

@ -197,8 +197,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
if (args_has(self->args, 'T')) {
pane_title = format_single(item, args_get(self->args, 'T'),
c, s, wl, wp);
screen_set_title(&wp->base, pane_title);
server_status_window(wp->window);
if (screen_set_title(&wp->base, pane_title))
server_status_window(wp->window);
free(pane_title);
return (CMD_RETURN_NORMAL);
}