summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2023-04-25 09:24:45 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2023-04-25 09:24:45 +0000
commit687b888e40229ffc1b9c875e9e34b3b27c0c3a67 (patch)
tree5cdb2cf6e7f7bc68042336c75d15b6cca1ae33a0 /usr.bin/tmux
parent63486983513521508df3ef392de2024aa77d4485 (diff)
Invalidate cached tty state after changing features since they may
change what the terminal can do and need mouse sequences or similar to be sent again, GitHub issue 3513.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index f05bfea6a92..8e5b194cada 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.428 2023/03/27 08:31:32 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.429 2023/04/25 09:24:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -482,6 +482,8 @@ tty_update_features(struct tty *tty)
tty_puts(tty, tty_term_string(tty->term, TTYC_ENFCS));
if (tty->term->flags & TERM_VT100LIKE)
tty_puts(tty, "\033[?7727h");
+
+ tty_invalidate(tty);
}
void