We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a95870d commit 103ed6dCopy full SHA for 103ed6d
1 file changed
internal/buffer/buffer.go
@@ -151,7 +151,7 @@ func (b *SharedBuffer) MarkModified(start, end int) {
151
152
if b.Settings["syntax"].(bool) && b.SyntaxDef != nil {
153
l := start
154
- for i := start; i <= end; i++ {
+ for i := start; i <= end; i = l + 1 {
155
l = util.Max(b.Highlighter.ReHighlightStates(b, i), l)
156
}
157
b.Highlighter.Highlight(b, start, l)
0 commit comments