cleanup
This commit is contained in:
parent
4fff4f97e2
commit
84d066050c
12
ui.go
12
ui.go
@ -667,13 +667,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:
|
||||
|
Loading…
Reference in New Issue
Block a user