Another colorscheme lookup fix for when the config specifies no colorscheme.
This commit is contained in:
parent
e01db2c144
commit
7b8bf412b1
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user