This commit is contained in:
Gokcehan 2016-11-06 22:59:42 +03:00
parent 4fff4f97e2
commit 84d066050c

12
ui.go
View File

@ -667,13 +667,15 @@ func (ui *UI) readExpr(app *App) chan MultiExpr {
expr := gOpts.keys[string(acc)] expr := gOpts.keys[string(acc)]
switch expr.(type) { switch expr.(type) {
case *CallExpr: case *CallExpr:
if expr.(*CallExpr).name == "read" || switch expr.(*CallExpr).name {
expr.(*CallExpr).name == "read-shell" || case "read",
expr.(*CallExpr).name == "read-shell-wait" || "read-shell",
expr.(*CallExpr).name == "read-shell-async" { "read-shell-wait",
"read-shell-async",
"push":
expr.eval(app, nil) expr.eval(app, nil)
ui.draw(app.nav) ui.draw(app.nav)
} else { default:
ch <- MultiExpr{expr, count} ch <- MultiExpr{expr, count}
} }
default: default: