diff options
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 4614e079..05b03b9e 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -281,8 +281,8 @@ func (p *Pattern) matchChunk(chunk *Chunk, space []*Result, slab *util.Slab) []* matches := []*Result{} if space == nil { - for _, item := range *chunk { - if match, _, _ := p.MatchItem(item, false, slab); match != nil { + for idx := range *chunk { + if match, _, _ := p.MatchItem(&(*chunk)[idx], false, slab); match != nil { matches = append(matches, match) } } |