Extend escape timeout if there are active forwarded requests not just

tmux's own requests. GitHub issue 4793.
This commit is contained in:
nicm
2026-01-07 20:03:34 +00:00
parent e2afaaea75
commit ff4f6b9066

View File

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