fix: wezterm cli activate-pane-direction now repaints (#3303)
Closes #2879
This commit is contained in:
1 parent
2b9bf36eb6
commit
da7e29df2d
1 file changed
+5
-1
+5
-1
@@ -1,7 +1,7 @@
|
|||||||
use crate::domain::DomainId;
|
use crate::domain::DomainId;
|
||||||
use crate::pane::*;
|
use crate::pane::*;
|
||||||
use crate::renderable::StableCursorPosition;
|
use crate::renderable::StableCursorPosition;
|
||||||
use crate::{Mux, WindowId};
|
use crate::{Mux, MuxNotification, WindowId};
|
||||||
use bintree::PathBranch;
|
use bintree::PathBranch;
|
||||||
use config::configuration;
|
use config::configuration;
|
||||||
use config::keyassignment::PaneDirection;
|
use config::keyassignment::PaneDirection;
|
||||||
@@ -1417,6 +1417,10 @@ impl TabInner {
|
|||||||
if let Some(panel_idx) = self.get_pane_direction(direction, false) {
|
if let Some(panel_idx) = self.get_pane_direction(direction, false) {
|
||||||
self.set_active_idx(panel_idx);
|
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<usize> {
|
fn get_pane_direction(&mut self, direction: PaneDirection, ignore_zoom: bool) -> Option<usize> {
|
||||||
|
|||||||
Reference in new issue
Block a user