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.

Fix recent project index order (#12507)

Vladas Zakrevskis819bb2663dbc
diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rs
index 6aa88ce93f2..880defbf708 100644
--- a/crates/recent_projects/src/recent_projects.rs
+++ b/crates/recent_projects/src/recent_projects.rs
@@ -228,8 +228,8 @@ impl PickerDelegate for RecentProjectsDelegate {
let candidates = self
.workspaces
.iter()
- .filter(|(id, _)| !self.is_current_workspace(*id, cx))
.enumerate()
+ .filter(|(_, (id, _))| !self.is_current_workspace(*id, cx))
.map(|(id, (_, location))| {
let combined_string = match location {
SerializedWorkspaceLocation::Local(paths, _) => paths