summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-17 19:26:43 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-17 19:26:43 +0000
commit520956771ac216e1274656f20b3b4be98a899197 (patch)
tree313d1b71b00f2a2db56f1a4f837d744fee7370da /usr.bin
parenta1d077f683e311ec4bd8cc2830c74f25c32bae21 (diff)
Do not block with incremental command prompt.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-command-prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-command-prompt.c b/usr.bin/tmux/cmd-command-prompt.c
index 24dbf79b5d5..efc709e512d 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.56 2021/08/13 06:50:42 nicm Exp $ */
+/* $OpenBSD: cmd-command-prompt.c,v 1.57 2021/08/17 19:26:42 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -79,6 +79,8 @@ cmd_command_prompt_exec(struct cmd *self, struct cmdq_item *item)
if (tc->prompt_string != NULL)
return (CMD_RETURN_NORMAL);
+ if (args_has(args, 'i'))
+ wait = 0;
cdata = xcalloc(1, sizeof *cdata);
cdata->idx = 1;