Tweak RankedMatch behaviour

This commit is contained in:
Maxime Coste 2016-04-03 18:50:01 +01:00
parent 0478a8f11a
commit 989d64abd4

View File

@ -106,7 +106,7 @@ RankedMatch::RankedMatch(StringView candidate, StringView query, TestFunc func)
m_first_char_match = smartcase_eq(query[0], candidate[0]);
m_word_boundary_match_count = count_word_boundaries_match(candidate, query);
m_only_word_boundary = m_word_boundary_match_count == query.length();
m_prefix = std::equal(query.begin(), query.end(), candidate.begin(), smartcase_eq);
m_prefix = std::equal(query.begin(), query.end(), candidate.begin());
}
}