mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-30 10:05:58 +00:00
Fix compatibility issues with OR operator and inverse terms
This commit is contained in:
1 parent
e7e86b68f4
commit
31278bcc68
4 files changed
+22
-9
No files matched your search
@@ -63,6 +63,9 @@ func (item *Item) Rank(cache bool) Rank {
|
||||
matchlen += end - begin
|
||||
}
|
||||
}
|
||||
if matchlen == 0 {
|
||||
matchlen = math.MaxUint16
|
||||
}
|
||||
var tiebreak uint16
|
||||
switch rankTiebreak {
|
||||
case byLength:
|
||||
|
||||
Reference in new issue
Block a user