mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
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:
parent
5dc36260e5
commit
ffaf409a31
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user