handle keys of push command while scanning

This commit is contained in:
Gokcehan committed 2016-10-15 21:46:31 +03:00
1 parent cecd3f9904
commit a3965ca1d9
7 files changed
+50 -6

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ func (e *CallExpr) eval(app *App, args []string) {
app.ui.loadFile(app.nav)
case "push":
if len(e.args) > 0 {
app.ui.keysbuf = append(app.ui.keysbuf, splitKeys(strings.Join(e.args, ""))...)
app.ui.keysbuf = append(app.ui.keysbuf, splitKeys(e.args[0])...)
}
default:
cmd, ok := gOpts.cmds[e.name]