diff options
-rw-r--r-- | config/style.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/style.go b/config/style.go index 317c77d0..7b13c3a2 100644 --- a/config/style.go +++ b/config/style.go @@ -288,7 +288,10 @@ func (ss StyleSet) Selected(so StyleObject) tcell.Style { } func (ss StyleSet) UserStyle(name string) tcell.Style { - return ss.user[name].Get() + if style, found := ss.user[name]; found { + return style.Get() + } + return tcell.StyleDefault } func (ss StyleSet) Compose(so StyleObject, sos []StyleObject) tcell.Style { |