From 0541c0dbcf96ff40bd80cb8359191dc0fa01d83d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 18 Oct 2016 01:11:04 +0900 Subject: 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. --- test/test_go.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index ff4b173b..dd132d30 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -604,8 +604,8 @@ class TestGoFZF < TestBase ], `#{FZF} -fo --tiebreak=end < #{tempname}`.split($/) assert_equal [ - ' xxxxoxxx', 'xxxxxoxxx', + ' xxxxoxxx', 'xxxxoxxxx', 'xxxoxxxxxx', 'xxoxxxxxxx', -- cgit v1.2.3