diff options
-rw-r--r-- | config/binds.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/binds.go b/config/binds.go index c288864a..95fa8c7d 100644 --- a/config/binds.go +++ b/config/binds.go @@ -363,6 +363,12 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { merged.ExKey = bindings[0].ExKey merged.CompleteKey = bindings[0].CompleteKey merged.Globals = bindings[0].Globals + for _, b := range bindings { + merged.contextualBinds = append(merged.contextualBinds, b.contextualBinds...) + for t, c := range b.contextualCounts { + merged.contextualCounts[t] += c + } + } return merged } |