Prefer first max while fuzzy matching projects fixes unexpected behavior
This commit is contained in:
1 parent
1b7c426a70
commit
5ff1b4932a
1 file changed
+1
@@ -146,6 +146,7 @@ impl PickerDelegate for RecentProjectsView {
|
||||
.matches
|
||||
.iter()
|
||||
.enumerate()
|
||||
.rev()
|
||||
.max_by_key(|(_, m)| OrderedFloat(m.score))
|
||||
.map(|(ix, _)| ix)
|
||||
.unwrap_or(0);
|
||||
|
||||
Reference in new issue
Block a user