summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-11 07:51:32 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-11 07:51:32 +0000
commitb5c057dce49cb1ba9842ff6393042fcb06e3ea4f (patch)
tree1f9022347bd96b5c6e9491866aefa47c6380d682 /usr.bin/tmux
parent6b177a73d305f6a0726390ef3f72e3a4b4b105fa (diff)
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.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 801c1e84fc3..dd1ea91e6c8 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.397 2021/08/06 07:32:21 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.398 2021/08/11 07:51:31 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);
}