mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-10 17:10:19 +09:00
Fix larger multiline region highlighting
This commit is contained in:
@@ -73,6 +73,10 @@ func FindAllIndex(regex *regexp.Regexp, str []byte, canMatchStart, canMatchEnd b
|
||||
func (h *Highlighter) highlightRegion(start int, canMatchEnd bool, lineNum int, line []byte, region *Region) LineMatch {
|
||||
highlights := make(LineMatch)
|
||||
|
||||
if start == 0 {
|
||||
highlights[0] = region.group
|
||||
}
|
||||
|
||||
loc := FindIndex(region.end, line, start == 0, canMatchEnd)
|
||||
if loc != nil {
|
||||
if region.parent == nil {
|
||||
|
||||
Reference in New Issue
Block a user