Merge pull request #81 from markuspeloquin/master
Fix crash when loading a custom colorscheme
This commit is contained in:
commit
84ec9e4e7a
@ -18,14 +18,11 @@ func init() {
|
||||
}
|
||||
|
||||
func FromName(confDir configdir.ConfigDir, c string) (Colorscheme, error) {
|
||||
cs, ok := registry[c]
|
||||
if !ok {
|
||||
cs, err := getCustomColorscheme(confDir, c)
|
||||
if err != nil {
|
||||
return cs, err
|
||||
}
|
||||
if cs, ok := registry[c]; ok {
|
||||
return cs, nil
|
||||
}
|
||||
return cs, nil
|
||||
cs, err := getCustomColorscheme(confDir, c)
|
||||
return cs, err
|
||||
}
|
||||
|
||||
func register(name string, c Colorscheme) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user