Zachary Rice пре 4 година
родитељ
комит
a62cc52aba
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      detect/location.go

+ 1 - 0
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