Use the message that has already been built rather than the va_list.

pull/2030/head
nicm 2019-12-17 11:43:23 +00:00
parent 1bdd4828bd
commit f8cb759bdb
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ cmdq_print(struct cmdq_item *item, const char *fmt, ...)
wme = TAILQ_FIRST(&wp->modes);
if (wme == NULL || wme->mode != &window_view_mode)
window_pane_set_mode(wp, &window_view_mode, NULL, NULL);
window_copy_vadd(wp, fmt, ap);
window_copy_add(wp, "%s", msg);
}
free(msg);