Another colorscheme lookup fix for when the config specifies no colorscheme.

This commit is contained in:
Sean E. Russell 2022-02-08 14:33:51 -06:00
parent e01db2c144
commit 7b8bf412b1

View File

@ -29,6 +29,9 @@ func SetTr(tra lingo.Translations) {
// directories for a scheme matching the name. The search order
// is the same as for config files.
func FromName(confDir configdir.ConfigDir, c string) (Colorscheme, error) {
if c == "" {
c = "default"
}
if cs, ok := registry[c]; ok {
return cs, nil
}