evaluate push command while reading

This commit is contained in:
Gokcehan committed 2016-10-31 11:52:32 +03:00
1 parent ca090fd144
commit e753b5b159
1 file changed
+7 -5
+7 -5
View File
@@ -634,13 +634,15 @@ func (ui *UI) readExpr(app *App) chan MultiExpr {
expr := gOpts.keys[string(acc)]
switch expr.(type) {
case *CallExpr:
if expr.(*CallExpr).name == "read" ||
expr.(*CallExpr).name == "read-shell" ||
expr.(*CallExpr).name == "read-shell-wait" ||
expr.(*CallExpr).name == "read-shell-async" {
switch expr.(*CallExpr).name {
case "read",
"read-shell",
"read-shell-wait",
"read-shell-async",
"push":
expr.eval(app, nil)
ui.draw(app.nav)
} else {
default:
ch <- MultiExpr{expr, count}
}
default: