Re-render workspace when removing an inactive pane
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
e62781a57b
commit
bae44d8132
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue