Merge pull request #269 from abitrolly/keyfix
Propagate error from parsing keybinding (#129)
This commit is contained in:
commit
25c3017c0a
@ -62,7 +62,10 @@ func NewBindingFromConfig(gui *gocui.Gui, influence string, configKeys []string,
|
|||||||
logrus.Debugf("parsing keybinding '%s' --> '%s'", configKey, bindStr)
|
logrus.Debugf("parsing keybinding '%s' --> '%s'", configKey, bindStr)
|
||||||
|
|
||||||
keys, err := keybinding.ParseAll(bindStr)
|
keys, err := keybinding.ParseAll(bindStr)
|
||||||
if err == nil && keys != nil && len(keys) > 0 {
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if len(keys) > 0 {
|
||||||
parsedKeys = keys
|
parsedKeys = keys
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user