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",
|
||||
"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}
|
||||
|
2
eval.go
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user