summaryrefslogtreecommitdiffstats
path: root/src/tokenizer.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer.go')
-rw-r--r--src/tokenizer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tokenizer.go b/src/tokenizer.go
index 294329b0..26aebd94 100644
--- a/src/tokenizer.go
+++ b/src/tokenizer.go
@@ -4,6 +4,8 @@ import (
"regexp"
"strconv"
"strings"
+
+ "github.com/junegunn/fzf/src/util"
)
const rangeEllipsis = 0
@@ -180,7 +182,7 @@ func Transform(tokens []Token, withNth []Range) *Transformed {
end += numTokens + 1
}
}
- minIdx = Max(0, begin-1)
+ minIdx = util.Max(0, begin-1)
for idx := begin; idx <= end; idx++ {
if idx >= 1 && idx <= numTokens {
part += *tokens[idx-1].text