We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d752d90 commit f1b80b4Copy full SHA for f1b80b4
helix-term/src/ui/completion.rs
@@ -369,7 +369,13 @@ impl Completion {
369
let min_score = (7 + pattern.needle_text().len() as u32 * 14) / 3;
370
matches.sort_unstable_by_key(|&(i, score)| {
371
let option = &options[i as usize];
372
+ let filter_text = option.filter_text();
373
+ let is_exact_match = Utf32Str::new(filter_text, &mut buf) == pattern.needle_text();
374
+ let match_length = filter_text.len() as u32;
375
+
376
(
377
+ !is_exact_match,
378
+ match_length,
379
score <= min_score,
380
Reverse(option.preselect()),
381
option.provider_priority(),
0 commit comments