diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-15 23:20:03 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-15 23:20:03 +1100 |
| commit | 08df409a534f6bfc5c53e9e4956f0f5aa973fc34 (patch) | |
| tree | a3367da6b15c2b94517030db5e713e8a487c5fe9 /src/command_manager.cc | |
| parent | 1ede2b89bbb0c8b85eb48d072ad57943706729dd (diff) | |
RankedMatch: Do not compare word boundary match count on single word matches
As the computation of word boundary matches is separate from the
actual subsequence matching, we sometimes have candidate that match
as a single word while still having multiple word boundary matches.
For example, with query "expresins", candidate "expressionism's"
will match as single word ("expressins" is a subsequence of
"expressionism"), and will have two word boundaries match (it does
match the last "s", which is considered as a separate word).
This should not be taken into account when compared against
candidate "expresions", which should be considered a better
match.
Fixes #1925
Diffstat (limited to 'src/command_manager.cc')
0 files changed, 0 insertions, 0 deletions
