diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 35f3ff9a0c..1f0a89a083 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -1203,6 +1203,7 @@ impl Workspace { self.panes.retain(|p| p != &pane); self.activate_pane(self.panes.last().unwrap().clone(), cx); self.unfollow(&pane, cx); + self.last_leaders_by_pane.remove(&pane.downgrade()); cx.notify(); } }