From f8cb759bdbf767348dba1ae841a86f2bdafe3f25 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 17 Dec 2019 11:43:23 +0000 Subject: [PATCH] Use the message that has already been built rather than the va_list. --- cmd-queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-queue.c b/cmd-queue.c index 6019ab51..69e4f6b2 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -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);