Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
pane: Fix pinned tabs being persisted after closing (#17666)
Piotr Osiewicz3cea7ccbff43
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex e2a77402de7..23148d6376f 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -1364,6 +1364,9 @@ impl Pane {self.activation_history.retain(|entry| entry.entity_id != self.items[item_index].item_id());+ if self.is_tab_pinned(item_index) {+ self.pinned_tab_count -= 1;+ }if item_index == self.active_item_index {let index_to_activate = self.activation_history