diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-08-20 03:33:55 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-08-20 12:29:11 +0900 |
commit | a2a4df088646a5f363f9321c52ef9ab9ba4706aa (patch) | |
tree | f4ff2f96b19be37582453bb1c28968c0b58d1549 /src/pattern.go | |
parent | 3399e39968473b1920db19ef1969b9df34bdd3c1 (diff) |
Pass util.Chars by pointer
Diffstat (limited to 'src/pattern.go')
-rw-r--r-- | src/pattern.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern.go b/src/pattern.go index 94615add..636ae1ee 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -387,7 +387,7 @@ func (p *Pattern) transformInput(item *Item) []Token { func (p *Pattern) iter(pfun algo.Algo, tokens []Token, caseSensitive bool, normalize bool, forward bool, pattern []rune, withPos bool, slab *util.Slab) (Offset, int, *[]int) { for _, part := range tokens { - if res, pos := pfun(caseSensitive, normalize, forward, *part.text, pattern, withPos, slab); res.Start >= 0 { + if res, pos := pfun(caseSensitive, normalize, forward, part.text, pattern, withPos, slab); res.Start >= 0 { sidx := int32(res.Start) + part.prefixLength eidx := int32(res.End) + part.prefixLength if pos != nil { |