From: nicm Date: Wed, 22 Sep 2021 15:21:44 +0000 (+0000) Subject: Fix command prompt with multiple prompts (add the result onto the list X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d520327d015c287d509eeff920c1446188441188;p=openbsd Fix command prompt with multiple prompts (add the result onto the list again as we go along). ok deraadt --- 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 @@ -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);