mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -1203,6 +1203,7 @@ impl Workspace {
|
||||||
self.panes.retain(|p| p != &pane);
|
self.panes.retain(|p| p != &pane);
|
||||||
self.activate_pane(self.panes.last().unwrap().clone(), cx);
|
self.activate_pane(self.panes.last().unwrap().clone(), cx);
|
||||||
self.unfollow(&pane, cx);
|
self.unfollow(&pane, cx);
|
||||||
|
self.last_leaders_by_pane.remove(&pane.downgrade());
|
||||||
cx.notify();
|
cx.notify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue