load file after shell commands
This commit is contained in:
parent
609c637e82
commit
bd8f215c55
2
app.go
2
app.go
@ -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}
|
||||||
|
2
eval.go
2
eval.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user