aboutsummaryrefslogtreecommitdiff
path: root/cmd-command-prompt.c
diff options
context:
space:
mode:
authornicm <nicm>2021-09-22 15:21:44 +0000
committernicm <nicm>2021-09-22 15:21:44 +0000
commit257e9ba69a06c37c3b970db06c50e93f91955b11 (patch)
treea2081b827bf30f2b6894c7bd08f7160b43653df8 /cmd-command-prompt.c
parentc4b969ca62a6f0b66f97c9bfe88022a91d162038 (diff)
downloadrtmux-257e9ba69a06c37c3b970db06c50e93f91955b11.tar.gz
rtmux-257e9ba69a06c37c3b970db06c50e93f91955b11.tar.bz2
rtmux-257e9ba69a06c37c3b970db06c50e93f91955b11.zip
Fix command prompt with multiple prompts (add the result onto the list
again as we go along). ok deraadt
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r--cmd-command-prompt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c
index 820053ec..a7a02702 100644
--- a/cmd-command-prompt.c
+++ b/cmd-command-prompt.c
@@ -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);