Reorganize source code

This commit is contained in:
Junegunn Choi committed 2015-01-12 12:56:17 +09:00
1 parent 7a2bc2cada
commit cd847affb7
21 files changed
+139 -91

No files matched your search

+3 -1
View File
@@ -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