Skip to content

Commit

Permalink
Propagate error from parsing keybinding (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Dec 26, 2019
1 parent 8d8c84c commit bf7dd66
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 keys != nil && len(keys) > 0 {
parsedKeys = keys
break
}
Expand Down

0 comments on commit bf7dd66

Please sign in to comment.