From ff4f6b90660dd5477f1c4242f3e8628ef3854a74 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 7 Jan 2026 20:03:34 +0000 Subject: [PATCH] Extend escape timeout if there are active forwarded requests not just tmux's own requests. GitHub issue 4793. --- tty-keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tty-keys.c b/tty-keys.c index 2fa05146..33de5cbb 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -956,7 +956,8 @@ partial_key: if (delay == 0) delay = 1; if ((tty->flags & (TTY_WAITFG|TTY_WAITBG) || - (tty->flags & TTY_ALL_REQUEST_FLAGS) != TTY_ALL_REQUEST_FLAGS)) { + (tty->flags & TTY_ALL_REQUEST_FLAGS) != TTY_ALL_REQUEST_FLAGS) || + !TAILQ_EMPTY(&c->input_requests)) { log_debug("%s: increasing delay for active query", c->name); if (delay < 500) delay = 500;