From a62cc52aba79db86af919c610adc3d486fe9c647 Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Sat, 23 Apr 2022 11:18:56 -0500 Subject: [PATCH] nasty little bug (#853) --- detect/location.go | 1 + 1 file changed, 1 insertion(+) diff --git a/detect/location.go b/detect/location.go index 845dbd9f..51677752 100644 --- a/detect/location.go +++ b/detect/location.go @@ -22,6 +22,7 @@ func location(fragment Fragment, matchIndex []int) Location { end := matchIndex[1] for lineNum, pair := range fragment.newlineIndices { + _lineNum = lineNum newLineByteIndex := pair[0] if prevNewLine <= start && start < newLineByteIndex { lineSet = true