Fix bug in syntax highlighting

This commit is contained in:
Zachary Yedidia
2016-04-05 17:16:21 -04:00
parent cece846297
commit 737ceaed34

View File

@@ -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