mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-26 02:40:30 +00:00
Fix bug in syntax highlighting
This commit is contained in:
parent
cece846297
commit
737ceaed34
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue