Commit 7cd1ef98 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix cancelling out of unmatchedLettersPenalty

This needed to be a multiplication, not an addition as addition
unconditionally adds points to the score messing up the results.

CCBUG: 455865
parent 4efcecac
Pipeline #194824 failed with stage
in 18 minutes and 15 seconds
......@@ -114,7 +114,7 @@ protected:
// because otherwise getting to root files may
// not be that easy
if (!matchPath) {
score += (sm->idxToFilePath(sourceRow) == name) + name.size();
score += (sm->idxToFilePath(sourceRow) == name) * name.size();
}
}
......
Supports Markdown
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