load file after shell commands

This commit is contained in:
Gokcehan 2016-11-12 14:33:59 +03:00
parent 609c637e82
commit bd8f215c55
2 changed files with 2 additions and 2 deletions

2
app.go
View File

@ -122,6 +122,7 @@ func (app *App) readExpr() chan MultiExpr {
"read-shell-async", "read-shell-async",
"push": "push":
expr.eval(app, nil) expr.eval(app, nil)
app.ui.loadFile(app.nav)
app.ui.draw(app.nav) app.ui.draw(app.nav)
default: default:
ch <- MultiExpr{expr, count} ch <- MultiExpr{expr, count}
@ -157,6 +158,7 @@ func (app *App) readExpr() chan MultiExpr {
"read-shell-async", "read-shell-async",
"push": "push":
expr.eval(app, nil) expr.eval(app, nil)
app.ui.loadFile(app.nav)
app.ui.draw(app.nav) app.ui.draw(app.nav)
default: default:
ch <- MultiExpr{expr, count} ch <- MultiExpr{expr, count}

View File

@ -364,9 +364,7 @@ func (e *ExecExpr) eval(app *App, args []string) {
switch e.pref { switch e.pref {
case "$": case "$":
log.Printf("shell: %s -- %s", e, args) log.Printf("shell: %s -- %s", e, args)
app.ui.clearMsg()
app.runShell(e.expr, args, false, false) app.runShell(e.expr, args, false, false)
app.ui.loadFile(app.nav)
case "!": case "!":
log.Printf("shell-wait: %s -- %s", e, args) log.Printf("shell-wait: %s -- %s", e, args)
app.runShell(e.expr, args, true, false) app.runShell(e.expr, args, true, false)