From 257e9ba69a06c37c3b970db06c50e93f91955b11 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 22 Sep 2021 15:21:44 +0000 Subject: [PATCH] Fix command prompt with multiple prompts (add the result onto the list again as we go along). ok deraadt --- cmd-command-prompt.c | 1 + 1 file changed, 1 insertion(+) 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);