mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-23 07:20:20 +09:00
Fix bug in syntax highlighting
This commit is contained in:
@@ -280,7 +280,7 @@ func Match(v *View) SyntaxMatches {
|
||||
matches := make(SyntaxMatches, len(lines))
|
||||
|
||||
for i, line := range lines {
|
||||
matches[i] = make([]tcell.Style, len(line))
|
||||
matches[i] = make([]tcell.Style, len(line)+1)
|
||||
}
|
||||
|
||||
// We don't actually check the entire buffer, just from synLinesUp to synLinesDown
|
||||
|
||||
Reference in New Issue
Block a user