Commit 26297e89 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix fileName match accepted when path didn't match

When a path is provided, it *must* match for a match to be acceptable.
Only filename match is not acceptable in that case.
parent f0f63a04
Pipeline #155677 passed with stage
in 8 minutes and 24 seconds
......@@ -100,7 +100,9 @@ protected:
QStringView path{sm->idxToFilePath(sourceRow)};
bool resp = filterByPath(path, QStringView(pattern.data(), pattern.size()), scorep);
score += scorep;
res = res || resp;
res = resp;
// zero out the score if didn't match
score *= res;
}
if (res) {
......
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