Fix --tiebreak=begin with algo v2
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Due to performance consideration, FuzzyMatchV2 does not return the exact positions of the matching characters by default. However, the ommission caused `--tiebreak=begin` to produce inaccurate result in some cases. (echo baz foo bar; echo foo bar baz) | fzf --tiebreak=begin -fbar | head -1 # Expected: foo bar baz # Actual: baz foo bar This commit fixes the problem by using the end offset which is guaranteed to be correct.
authored by Junegunn Choi · committed by Junegunn Choi · parent c95bb10 · Browse files · 1 file+3 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+3 added−1 removed
- other:+3 added−1 removed