Skip to content

Commit

Permalink
Merge pull request #269 from abitrolly/keyfix
Browse files Browse the repository at this point in the history
Propagate error from parsing keybinding (#129)
  • Loading branch information
wagoodman authored Dec 26, 2019
2 parents 8d8c84c + 20ec5cf commit 25c3017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/ui/key/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ func NewBindingFromConfig(gui *gocui.Gui, influence string, configKeys []string,
logrus.Debugf("parsing keybinding '%s' --> '%s'", configKey, 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
break
}
Expand Down

0 comments on commit 25c3017

Please sign in to comment.