summaryrefslogtreecommitdiffstats
path: root/colorschemes
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2022-02-08 14:33:51 -0600
committerSean E. Russell <ser@ser1.net>2022-02-08 14:33:51 -0600
commit7b8bf412b1c832ef5702c933ce21e03b8fad201a (patch)
tree8974f9807a4cde7b231e7566fea2b78cb46728ef /colorschemes
parente01db2c144b3609fdf0f03c5d9a1715f0ad1e961 (diff)
Another colorscheme lookup fix for when the config specifies no colorscheme.
Diffstat (limited to 'colorschemes')
-rw-r--r--colorschemes/registry.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/colorschemes/registry.go b/colorschemes/registry.go
index 663ccab..0055ff4 100644
--- a/colorschemes/registry.go
+++ b/colorschemes/registry.go
@@ -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
}