Fix internal string binding representation

This commit is contained in:
Zachary Yedidia
2020-11-05 15:52:25 -05:00
parent 5d230754a8
commit 95fea064b0
7 changed files with 18 additions and 8 deletions

View File

@@ -62,6 +62,8 @@ func LuaAction(fn string) func(*BufPane) bool {
// BufMapKey maps an event to an action
func BufMapEvent(k Event, action string) {
config.Bindings["buffer"][k.Name()] = action
switch e := k.(type) {
case KeyEvent, KeySequenceEvent, RawEvent:
bufMapKey(e, action)