mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-16 00:47:39 +03:00
pane: Fix scrolling to items when there are pinned tabs (#17444)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
d6ab569e42
commit
b887f8df8c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user