mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
Fix compatibility issues with OR operator and inverse terms
This commit is contained in:
@@ -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