Forget last pane's leader when such pane is removed
This is just a memory optimization and doesn't cause any observable change in behavior.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user