Commit d6b129c0 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Revert leftover scoring change

parent a5b47a26
...@@ -236,13 +236,13 @@ static bool fuzzy_internal::fuzzy_match_recursive(QStringView::const_iterator pa ...@@ -236,13 +236,13 @@ static bool fuzzy_internal::fuzzy_match_recursive(QStringView::const_iterator pa
// This prevents double bonuses // This prevents double bonuses
const bool neighborSeparator = neighbor == QLatin1Char('_') || neighbor == QLatin1Char(' '); const bool neighborSeparator = neighbor == QLatin1Char('_') || neighbor == QLatin1Char(' ');
if (!neighborSeparator && neighbor.isLower() && curr.isUpper()) { if (!neighborSeparator && neighbor.isLower() && curr.isUpper()) {
outScore += camelBonus - currIdx; outScore += camelBonus;
continue; continue;
} }
// Separator // Separator
if (neighborSeparator) { if (neighborSeparator) {
outScore += separatorBonus - currIdx; outScore += separatorBonus;
} }
} else { } else {
// First letter match has the highest score // First letter match has the highest score
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment