1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00

fix: wezterm cli activate-pane-direction now repaints (#3303)

Closes #2879
This commit is contained in:
ir_ae 2023-03-23 00:36:46 -04:00 committed by GitHub
parent 2b9bf36eb6
commit da7e29df2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<usize> {