Re-render workspace when removing an inactive pane

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-03-14 15:44:57 +01:00
parent e62781a57b
commit bae44d8132

View file

@ -1089,6 +1089,7 @@ impl Workspace {
if self.center.remove(&pane).unwrap() { if self.center.remove(&pane).unwrap() {
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);
cx.notify();
} }
} }