m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Use relative position instead of absolute distance for --tiebreak=end

Fix unintuitive result where `*fzf*/install` is ranked higher than
`fzf/src/fzf/*fzf*-linux_386` on --tiebreak=end.
This commit is contained in:
Junegunn Choi
2016-10-18 01:11:04 +09:00
parent 47b11cb8b4
commit 0541c0dbcf
2 changed files with 7 additions and 7 deletions

View File

@@ -604,8 +604,8 @@ class TestGoFZF < TestBase
], `#{FZF} -fo --tiebreak=end < #{tempname}`.split($/)
assert_equal [
' xxxxoxxx',
'xxxxxoxxx',
' xxxxoxxx',
'xxxxoxxxx',
'xxxoxxxxxx',
'xxoxxxxxxx',