mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Prefer first max while fuzzy matching projects fixes unexpected behavior
This commit is contained in:
parent
79f8f08caf
commit
09d57d1f26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user