Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

tab_switcher: Fix missing preview on initial ctrl-shift-tab press (#44959)

Mayank Verma81d8fb930aca
diff --git a/crates/tab_switcher/src/tab_switcher.rs b/crates/tab_switcher/src/tab_switcher.rs
index 85186ad504e..85bb5fbba6a 100644
--- a/crates/tab_switcher/src/tab_switcher.rs
+++ b/crates/tab_switcher/src/tab_switcher.rs
@@ -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