From 1bebd6f4f5fac7c98ad01696fd819c3c82e41ec6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 18 Nov 2022 16:18:11 +0900 Subject: Fix panic on inverse match query with `--tiebreak=chunk` Fix #3055 --- test/test_go.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index 41767fce..b7ae1511 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -779,6 +779,10 @@ class TestGoFZF < TestBase '2 foobar baz', '3 foo barbaz' ], `#{FZF} -fba --tiebreak=chunk < #{tempname}`.lines(chomp: true) + + assert_equal [ + '3 foo barbaz' + ], `#{FZF} -f'!foobar' --tiebreak=chunk < #{tempname}`.lines(chomp: true) end def test_invalid_cache -- cgit v1.2.3