From bd7331ecf5f2dc6dd7b5e7e20979b8dc8021e04f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 11 Jan 2015 03:45:49 +0900 Subject: [PATCH] Remove unnecessary loop label --- src/pattern.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pattern.go b/src/pattern.go index a936411..2aa45c2 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -255,12 +255,11 @@ func (p *Pattern) extendedMatch(chunk *Chunk) []*Item { for _, item := range *chunk { input := p.prepareInput(item) offsets := []Offset{} - Loop: for _, term := range p.terms { pfun := p.procFun[term.typ] if sidx, eidx := p.iter(pfun, input, term.text); sidx >= 0 { if term.inv { - break Loop + break } offsets = append(offsets, Offset{int32(sidx), int32(eidx)}) } else if term.inv {