Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
preview tabs: Fix tab selection getting out of sync (#10478)
Bennet Bo Fenner7b01a29f5aa7
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex 449dae95d79..6bfd16e528f 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -818,11 +818,10 @@ impl Pane {if let Some(prev_item) = self.items.get(prev_active_item_ix) {prev_item.deactivated(cx);}-- cx.emit(Event::ActivateItem {- local: activate_pane,- });}+ cx.emit(Event::ActivateItem {+ local: activate_pane,+ });if let Some(newly_active_item) = self.items.get(index) {self.activation_history