m/fzf
1
0
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:
Junegunn Choi
2015-11-10 01:50:41 +09:00
parent e7e86b68f4
commit 31278bcc68
4 changed files with 22 additions and 9 deletions

View File

@@ -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: