diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-02 13:46:46 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-02 13:46:46 +0900 |
commit | fcf63c74f1de52e4b0038a50154ee1732ef84af5 (patch) | |
tree | 40c43059b15627bde4bce4d9c02f96d8d0e6050c /plugin | |
parent | c95bb109c83f8a1b7b4a7c316ab7f0c1ef845cd9 (diff) |
Fix --tiebreak=begin with algo v2
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.
Diffstat (limited to 'plugin')
0 files changed, 0 insertions, 0 deletions