Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix crash when moving panels (#52366)
Max Brunsfeld954409d3a270
diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rsindex 96323ef4e2e..7e86a5a8a33 100644--- a/crates/workspace/src/dock.rs+++ b/crates/workspace/src/dock.rs@@ -541,7 +541,10 @@ impl Dock {PanelSizeState::default()};- this.remove_panel(&panel, window, cx);+ if !this.remove_panel(&panel, window, cx) {+ // Panel was already moved from this dock+ return;+ }new_dock.update(cx, |new_dock, cx| {let index =