summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm>2019-12-17 11:43:23 +0000
committernicm <nicm>2019-12-17 11:43:23 +0000
commitf8cb759bdbf767348dba1ae841a86f2bdafe3f25 (patch)
tree57f9162e92dba6c5c0814d927b1da392e751faa5 /cmd-queue.c
parent1bdd4828bd0a13d6fb81c903078ad99ff2429b5d (diff)
Use the message that has already been built rather than the va_list.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 1 insertions, 1 deletions
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);