From 418ddada23d290ab02417b62213b402a08f4d9b5 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 21 Jul 2026 07:12:49 +0000 Subject: [PATCH 1/2] Increase escape-time for tmux's own queries (refresh-client -l and window size) as well, GitHub issue 5388 from Jackson Edmonds. --- tty-keys.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tty-keys.c b/tty-keys.c index 61e541165..2d4454b6c 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.210 2026/07/10 13:38:45 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.211 2026/07/21 07:12:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -977,8 +977,9 @@ partial_key: if (delay < 500) delay = 500; } - if ((tty->flags & (TTY_WAITFG|TTY_WAITBG) || - (tty->flags & TTY_ALL_REQUEST_FLAGS) != TTY_ALL_REQUEST_FLAGS) || + if (tty->flags & (TTY_WAITFG|TTY_WAITBG) || + tty->flags & (TTY_OSC52QUERY|TTY_WINSIZEQUERY) || + (tty->flags & TTY_ALL_REQUEST_FLAGS) != TTY_ALL_REQUEST_FLAGS || !TAILQ_EMPTY(&c->input_requests)) { log_debug("%s: increasing delay (active query)", c->name); if (delay < 500) From 0e2576a842104886f3e33f0e62928551e54309cb Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 21 Jul 2026 07:20:18 +0000 Subject: [PATCH 2/2] Use correct cursor position for range end, GitHub issue 5414. --- format-draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format-draw.c b/format-draw.c index ea1da421a..3fb6a9ae3 100644 --- a/format-draw.c +++ b/format-draw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format-draw.c,v 1.33 2026/06/29 17:08:52 nicm Exp $ */ +/* $OpenBSD: format-draw.c,v 1.34 2026/07/21 07:20:18 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott @@ -958,7 +958,7 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base, if (srs != NULL) { if (fr != NULL && !format_is_type(fr, &sy)) { if (s[current].cx != fr->start) { - fr->end = s[current].cx + 1; + fr->end = s[current].cx; TAILQ_INSERT_TAIL(&frs, fr, entry); } else free(fr);