m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 23:33:39 -05:00

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

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

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