Skip to content

Commit bf7dd66

Browse files
committed
Propagate error from parsing keybinding (#129)
1 parent 8d8c84c commit bf7dd66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runtime/ui/key/binding.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ func NewBindingFromConfig(gui *gocui.Gui, influence string, configKeys []string,
6262
logrus.Debugf("parsing keybinding '%s' --> '%s'", configKey, bindStr)
6363

6464
keys, err := keybinding.ParseAll(bindStr)
65-
if err == nil && keys != nil && len(keys) > 0 {
65+
if err != nil {
66+
return nil, err
67+
}
68+
if keys != nil && len(keys) > 0 {
6669
parsedKeys = keys
6770
break
6871
}

0 commit comments

Comments
 (0)