Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
pane: Fix scrolling to items when there are pinned tabs (#17444)
Piotr Osiewiczb887f8df8cd5
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex 578fdabad1d..2927d1c2ce9 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -1013,7 +1013,11 @@ impl Pane {self.focus_active_item(cx);}- self.tab_bar_scroll_handle.scroll_to_item(index);+ if !self.is_tab_pinned(index) {+ self.tab_bar_scroll_handle+ .scroll_to_item(index - self.pinned_tab_count);+ }+cx.notify();}}