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

again as we go along). ok deraadt
This commit is contained in:
nicm 2021-09-22 15:21:44 +00:00
parent c4b969ca62
commit 257e9ba69a

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