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
This commit is contained in:
Wez Furlong committed 2024-01-23 18:08:46 -07:00
1 parent 9bae5b4158
commit 8f74e1c848
1 file changed
+1
+1
View File
@@ -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