diff --git a/cmd/micro/settings.go b/cmd/micro/settings.go index 08d4adab..cf1b2093 100644 --- a/cmd/micro/settings.go +++ b/cmd/micro/settings.go @@ -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) + } } }