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 ba55c27 commit 6b37ac1Copy full SHA for 6b37ac1
src/history/history.rs
@@ -423,10 +423,10 @@ impl History {
423
let b_start = b.match_bounds[0].0;
424
let a_len = a.match_bounds[0].1 - a_start;
425
let b_len = b.match_bounds[0].1 - b_start;
426
- let a_score = a.rank as f64
+ let a_score = a.rank
427
+ (fuzzy as f64) * (1.0 / (1.0 + (a_start as f64 * start_weighting) + (a_len as f64 * len_weighting)));
428
429
- let b_score = b.rank as f64
+ let b_score = b.rank
430
+ (fuzzy as f64) * (1.0 / (1.0 + (b_start as f64 * start_weighting) + (b_len as f64 * len_weighting)));
431
432
b_score.partial_cmp(&a_score).unwrap_or(std::cmp::Ordering::Equal)
0 commit comments