Skip to content

Commit 06b180a

Browse files
committed
make the fuzzy search completely case insensitive
1 parent 3bcaefd commit 06b180a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ fn update_suggestions(
220220
let mut suggestions = Vec::new();
221221
for app in apps_lock.iter() {
222222
let name = &app.0;
223-
if let Some(mtch) = sublime_fuzzy::best_match(&state.text, name) {
223+
if let Some(mtch) =
224+
sublime_fuzzy::best_match(&state.text.to_lowercase(), &name.to_lowercase())
225+
{
224226
suggestions.push((mtch, name.to_string()));
225227
}
226228
}

0 commit comments

Comments
 (0)