diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 6f25af48b9dacbd49f81d401d5aa78e930010165..e2909593339a14fb79c190248b827cba32a30bc5 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -2315,11 +2315,13 @@ impl Workspace { } fn handle_pane_focused(&mut self, pane: View, cx: &mut ViewContext) { + // This is explicitly hoisted out of the following check for pane identity as + // terminal panel panes are not registered as a center panes. + self.status_bar.update(cx, |status_bar, cx| { + status_bar.set_active_pane(&pane, cx); + }); if self.active_pane != pane { self.active_pane = pane.clone(); - self.status_bar.update(cx, |status_bar, cx| { - status_bar.set_active_pane(&self.active_pane, cx); - }); self.active_item_path_changed(cx); self.last_active_center_pane = Some(pane.downgrade()); }