Fix panic on inverse match query with --tiebreak=chunk

Fix #3055
This commit is contained in:
Junegunn Choi committed 2022-11-18 20:16:43 +09:00
1 parent 3da63f394d
commit 1bebd6f4f5
3 files changed
+20 -11

No files matched your search

+4
View File
@@ -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