diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-04-03 18:50:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-04-04 13:42:58 +0100 |
| commit | 989d64abd48703041fa4bd81f909e8d9b35f918b (patch) | |
| tree | 9dc7db379d9e9f8f244bc81459280c04b3a91532 /src | |
| parent | 0478a8f11a2f27ff7427d652ff568af0832f514f (diff) | |
Tweak RankedMatch behaviour
Diffstat (limited to 'src')
| -rw-r--r-- | src/ranked_match.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranked_match.cc b/src/ranked_match.cc index 3d7d130b..89eb2c85 100644 --- a/src/ranked_match.cc +++ b/src/ranked_match.cc @@ -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()); } } |
