summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-12-17 11:43:24 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-12-17 11:43:24 +0000
commit3cf5c40c1dabc06b3bd58da137ae704859ef806e (patch)
tree3535f0368072fde11bc0ba17f60fe683d7a0da92 /usr.bin/tmux
parent659ff765b28cf0b44e9a0d8ea2208c7f143aebd3 (diff)
Use the message that has already been built rather than the va_list.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c
index a66894a7811..d03788d6c04 100644
--- a/usr.bin/tmux/cmd-queue.c
+++ b/usr.bin/tmux/cmd-queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-queue.c,v 1.76 2019/12/12 11:39:56 nicm Exp $ */
+/* $OpenBSD: cmd-queue.c,v 1.77 2019/12/17 11:43:23 nicm Exp $ */
/*
* Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);