summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-09-22 15:21:45 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-09-22 15:21:45 +0000
commit39f8726c3ed1a41dbe0dd8b38f0c9eb5e23dabcb (patch)
tree1176b6c6ba7fd528536706eba93c755dd83fd321
parentd115a70266143ce90f8a0db49f0ea18005856f9b (diff)
Fix command prompt with multiple prompts (add the result onto the list
again as we go along). ok deraadt
-rw-r--r--usr.bin/tmux/cmd-command-prompt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-command-prompt.c b/usr.bin/tmux/cmd-command-prompt.c
index ae66d20eb6e..d63f7d3d841 100644
--- a/usr.bin/tmux/cmd-command-prompt.c
+++ b/usr.bin/tmux/cmd-command-prompt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-command-prompt.c,v 1.63 2021/08/27 17:25:55 nicm Exp $ */
+/* $OpenBSD: cmd-command-prompt.c,v 1.64 2021/09/22 15:21:44 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -183,6 +183,7 @@ cmd_command_prompt_callback(struct client *c, void *data, const char *s,
if (cdata->flags & PROMPT_INCREMENTAL)
goto out;
+ cmd_append_argv(&cdata->argc, &cdata->argv, s);
if (++cdata->current != cdata->count) {
prompt = &cdata->prompts[cdata->current];
status_prompt_update(c, prompt->prompt, prompt->input);