mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
tab_switcher: Fix missing preview on initial ctrl-shift-tab press (#44959)
Closes #44852 Release Notes: - Fixed tab preview not showing up on initial ctrl-shift-tab press
This commit is contained in:
parent
65e9001791
commit
81d8fb930a
1 changed files with 3 additions and 1 deletions
|
|
@ -529,7 +529,9 @@ impl TabSwitcherDelegate {
|
|||
}
|
||||
|
||||
if self.select_last {
|
||||
return self.matches.len() - 1;
|
||||
let item_index = self.matches.len() - 1;
|
||||
self.set_selected_index(item_index, window, cx);
|
||||
return item_index;
|
||||
}
|
||||
|
||||
// This only runs when initially opening the picker
|
||||
|
|
|
|||
Loading…
Reference in a new issue