From 8f74e1c8486d66f40bd1d11cd01160774df64b07 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 23 Jan 2024 18:08:46 -0700 Subject: [PATCH] increment seqno when resizing Without this, we don't invalidate the shape hash eg: when zooming a pane. This is potentially also the root cause of some other weirdness with the multiplexer. refs: https://github.com/wez/wezterm/issues/4828 refs: https://github.com/wez/wezterm/issues/3694 refs: https://github.com/wez/wezterm/issues/2351 --- term/src/terminalstate/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/term/src/terminalstate/mod.rs b/term/src/terminalstate/mod.rs index 6ee81f3b8..f18ad0b6b 100644 --- a/term/src/terminalstate/mod.rs +++ b/term/src/terminalstate/mod.rs @@ -836,6 +836,7 @@ impl TerminalState { /// We need to resize both the primary and alt screens, adjusting /// the cursor positions of both accordingly. pub fn resize(&mut self, size: TerminalSize) { + self.increment_seqno(); let (cursor_main, cursor_alt) = if self.screen.alt_screen_is_active { ( self.screen