mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Optimize the memory usage for syntax highlighting
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user