mirror of
https://github.com/wagoodman/dive
synced 2026-03-14 14:25:50 +01:00
Propagate error from parsing keybinding (#129)
This commit is contained in:
parent
8d8c84cbf4
commit
bf7dd663c1
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue