From 436e13f1a5c25b1f96cbe509b057b6cf5519ba32 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 25 Apr 2023 09:24:44 +0000 Subject: [PATCH] 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. --- usr.bin/tmux/tty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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 -- 2.20.1