diff --git a/app.go b/app.go index 60f6c00..6c484a7 100644 --- a/app.go +++ b/app.go @@ -122,6 +122,7 @@ func (app *App) readExpr() chan MultiExpr { "read-shell-async", "push": expr.eval(app, nil) + app.ui.loadFile(app.nav) app.ui.draw(app.nav) default: ch <- MultiExpr{expr, count} @@ -157,6 +158,7 @@ func (app *App) readExpr() chan MultiExpr { "read-shell-async", "push": expr.eval(app, nil) + app.ui.loadFile(app.nav) app.ui.draw(app.nav) default: ch <- MultiExpr{expr, count} diff --git a/eval.go b/eval.go index 7f32267..c671b96 100644 --- a/eval.go +++ b/eval.go @@ -364,9 +364,7 @@ func (e *ExecExpr) eval(app *App, args []string) { switch e.pref { case "$": log.Printf("shell: %s -- %s", e, args) - app.ui.clearMsg() app.runShell(e.expr, args, false, false) - app.ui.loadFile(app.nav) case "!": log.Printf("shell-wait: %s -- %s", e, args) app.runShell(e.expr, args, true, false)