Fix command prompt with multiple prompts (add the result onto the list

again as we go along). ok deraadt
pull/2918/head
nicm 2021-09-22 15:21:44 +00:00
parent c4b969ca62
commit 257e9ba69a
1 changed files with 1 additions and 0 deletions

View File

@ -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);