Move bindings location in code

This commit is contained in:
Zachary Yedidia
2019-01-11 15:33:16 -05:00
parent 5fc5c63ce6
commit faf44826b7
4 changed files with 13 additions and 10 deletions

View File

@@ -14,9 +14,9 @@ import (
"github.com/zyedidia/tcell"
)
var Bindings = DefaultBindings()
func InitBindings() {
config.Bindings = DefaultBindings()
var parsed map[string]string
defaults := DefaultBindings()
@@ -57,7 +57,7 @@ func BindKey(k, v string) {
util.TermMessage("Raw events not supported yet")
}
Bindings[k] = v
config.Bindings[k] = v
}
// findKeyEvent will find binding Key 'b' using string 'k'