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.
This commit is contained in:
nicm 2021-08-11 07:51:31 +00:00
parent be5988457f
commit f6755c6f2c

1
tty.c
View File

@ -2041,6 +2041,7 @@ tty_set_selection(struct tty *tty, const char *buf, size_t len)
b64_ntop(buf, len, encoded, size); b64_ntop(buf, len, encoded, size);
tty_putcode_ptr2(tty, TTYC_MS, "", encoded); tty_putcode_ptr2(tty, TTYC_MS, "", encoded);
tty->client->redraw = EVBUFFER_LENGTH(tty->out);
free(encoded); free(encoded);
} }