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

@@ -83,13 +83,13 @@ func (s *StatusLine) Display() {
option := name[4:]
return []byte(fmt.Sprint(s.FindOpt(string(option))))
} else if bytes.HasPrefix(name, []byte("bind")) {
// binding := string(name[5:])
binding := string(name[5:])
// TODO: search bindings
// for k, v := range action.Bindings {
// if v == binding {
// return []byte(k)
// }
// }
for k, v := range config.Bindings {
if v == binding {
return []byte(k)
}
}
return []byte("null")
} else {
return []byte(s.Info[string(name)](s.win.Buf))