From bd8f215c5549b669e5b6917e96c2a63ea7884fff Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 12 Nov 2016 14:33:59 +0300 Subject: [PATCH] load file after shell commands --- app.go | 2 ++ eval.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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)