mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-10 17:40:59 +00:00
Fix syntax highlighting on empty buffer
This commit is contained in:
parent
a19a6d28a7
commit
0913a1aeb3
1 changed files with 3 additions and 1 deletions
|
|
@ -425,7 +425,9 @@ func SetLocalOption(option, value string, view *View) error {
|
|||
if !nativeValue.(bool) {
|
||||
buf.ClearMatches()
|
||||
} else {
|
||||
buf.highlighter.HighlightStates(buf)
|
||||
if buf.highlighter != nil {
|
||||
buf.highlighter.HighlightStates(buf)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue