Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix logic for activating panel when re-docking it
Max Brunsfelda4c123bb1103
diff --git a/crates/workspace2/src/dock.rs b/crates/workspace2/src/dock.rsindex f76bb821770..e44471a871a 100644--- a/crates/workspace2/src/dock.rs+++ b/crates/workspace2/src/dock.rs@@ -317,7 +317,7 @@ impl Dock {new_dock.add_panel(panel.clone(), workspace.clone(), cx);if was_visible {new_dock.set_open(true, cx);- new_dock.activate_panel(this.panels_len() - 1, cx);+ new_dock.activate_panel(new_dock.panels_len() - 1, cx);}});}