diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-08-14 17:51:34 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-08-14 17:51:34 +0900 |
commit | d4b63381029b477d064d4c3ff38f4efb89ae950d (patch) | |
tree | c15c9374b6af10778b096455b56b88a874b7ed64 /src/pattern.go | |
parent | 8df7d962e60bce44adda674ef8f99a2a76a4a6e7 (diff) |
Lint
Diffstat (limited to 'src/pattern.go')
-rw-r--r-- | src/pattern.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pattern.go b/src/pattern.go index 2df28795..0bf9af30 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -372,8 +372,8 @@ func (p *Pattern) iter(pfun func(bool, bool, util.Chars, []rune) algo.Result, for _, part := range tokens { prefixLength := int32(part.prefixLength) if res := pfun(caseSensitive, forward, part.text, pattern); res.Start >= 0 { - var sidx int32 = res.Start + prefixLength - var eidx int32 = res.End + prefixLength + sidx := res.Start + prefixLength + eidx := res.End + prefixLength return Offset{sidx, eidx, int32(part.trimLength)}, res.Bonus } } |