Optimize the memory usage for syntax highlighting

This commit is contained in:
Zachary Yedidia
2017-03-21 12:45:27 -04:00
parent 214adcf611
commit 59bf1a2260
4 changed files with 85 additions and 44 deletions

View File

@@ -349,7 +349,7 @@ func SetLocalOption(option, value string, view *View) error {
if !nativeValue.(bool) {
buf.ClearMatches()
} else {
buf.highlighter.Highlight(buf, 0)
buf.highlighter.HighlightStates(buf)
}
}