From da7e29df2d4c1df6ea46cc2e0d27ee445d739bf7 Mon Sep 17 00:00:00 2001 From: ir_ae <45274235+ir-ae@users.noreply.github.com> Date: Thu, 23 Mar 2023 00:36:46 -0400 Subject: [PATCH] fix: wezterm cli activate-pane-direction now repaints (#3303) Closes #2879 --- mux/src/tab.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mux/src/tab.rs b/mux/src/tab.rs index 89a256878..8c0b056ef 100644 --- a/mux/src/tab.rs +++ b/mux/src/tab.rs @@ -1,7 +1,7 @@ use crate::domain::DomainId; use crate::pane::*; use crate::renderable::StableCursorPosition; -use crate::{Mux, WindowId}; +use crate::{Mux, MuxNotification, WindowId}; use bintree::PathBranch; use config::configuration; use config::keyassignment::PaneDirection; @@ -1417,6 +1417,10 @@ impl TabInner { if let Some(panel_idx) = self.get_pane_direction(direction, false) { self.set_active_idx(panel_idx); } + let mux = Mux::get(); + if let Some(window_id) = mux.window_containing_tab(self.id) { + mux.notify(MuxNotification::WindowInvalidated(window_id)); + } } fn get_pane_direction(&mut self, direction: PaneDirection, ignore_zoom: bool) -> Option {