diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-12 12:56:17 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-12 12:56:17 +0900 |
commit | cd847affb79ea6438c9721635724efc6f58e2215 (patch) | |
tree | d1e631e3dca8832ee4c495924789f6697c3629cf /src/tokenizer.go | |
parent | 7a2bc2cada971c7a390d09b0afda34780ff56fb6 (diff) |
Reorganize source code
Diffstat (limited to 'src/tokenizer.go')
-rw-r--r-- | src/tokenizer.go | 4 |
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 |