From f6755c6f2c6fd10a90984fadad4c9ac4a8a92027 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 11 Aug 2021 07:51:31 +0000 Subject: [PATCH] OSC 52 can be long enough to make tmux think the output buffer is too big, so treat it as a redraw. GitHub issue 2814. --- tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tty.c b/tty.c index cb0fdec0..61b38eec 100644 --- a/tty.c +++ b/tty.c @@ -2041,6 +2041,7 @@ tty_set_selection(struct tty *tty, const char *buf, size_t len) b64_ntop(buf, len, encoded, size); tty_putcode_ptr2(tty, TTYC_MS, "", encoded); + tty->client->redraw = EVBUFFER_LENGTH(tty->out); free(encoded); }