mirror of
https://github.com/wagoodman/dive
synced 2026-03-14 14:25:50 +01:00
skip empty keybinding configs
This commit is contained in:
parent
bf90d13567
commit
cc40317207
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ func NewBindingFromConfig(gui *gocui.Gui, influence string, configKeys []string,
|
|||
var parsedKeys []keybinding.Key
|
||||
for _, configKey := range configKeys {
|
||||
bindStr := viper.GetString(configKey)
|
||||
if bindStr == "" {
|
||||
logrus.Debug("skipping keybinding '%s' (no value given)", configKey)
|
||||
continue
|
||||
}
|
||||
logrus.Debugf("parsing keybinding '%s' --> '%s'", configKey, bindStr)
|
||||
|
||||
keys, err := keybinding.ParseAll(bindStr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue