Code tidy
This commit is contained in:
parent
2755630929
commit
06d12b0415
@ -108,7 +108,6 @@ func (h *Highlighter) updateLines(startLine, endLine int) {
|
|||||||
indexes = k.Start.FindAllIndex(bytes, -1) // Attempt to find the start match
|
indexes = k.Start.FindAllIndex(bytes, -1) // Attempt to find the start match
|
||||||
}
|
}
|
||||||
|
|
||||||
if indexes != nil {
|
|
||||||
for i := range indexes {
|
for i := range indexes {
|
||||||
startLine, startCol := h.Buffer.PosToLineCol(indexes[i][0] + startPos)
|
startLine, startCol := h.Buffer.PosToLineCol(indexes[i][0] + startPos)
|
||||||
endLine, endCol := h.Buffer.PosToLineCol(indexes[i][1] - 1 + startPos)
|
endLine, endCol := h.Buffer.PosToLineCol(indexes[i][1] - 1 + startPos)
|
||||||
@ -118,7 +117,6 @@ func (h *Highlighter) updateLines(startLine, endLine int) {
|
|||||||
h.lineMatches[startLine] = append(h.lineMatches[startLine], match) // Unsorted
|
h.lineMatches[startLine] = append(h.lineMatches[startLine], match) // Unsorted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
h.validateLines(startLine, endLine) // Marks any "unvalidated" or nil lines as valued
|
h.validateLines(startLine, endLine) // Marks any "unvalidated" or nil lines as valued
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user