From 737ceaed3455449c4c2dbce041b1c3c9b39adea1 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Tue, 5 Apr 2016 17:16:21 -0400 Subject: [PATCH] Fix bug in syntax highlighting --- src/highlighter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlighter.go b/src/highlighter.go index f4483448..59e6f2de 100644 --- a/src/highlighter.go +++ b/src/highlighter.go @@ -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