update preview after shell commands

Mentioned in #64 and #71.
This commit is contained in:
Gokcehan 2017-04-09 18:18:02 +03:00
parent 79728a93da
commit 52fbe460b7
2 changed files with 3 additions and 2 deletions

3
app.go
View File

@ -160,4 +160,7 @@ func (app *app) runShell(s string, args []string, wait bool, async bool) {
log.Print(msg) log.Print(msg)
} }
} }
app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
} }

View File

@ -452,8 +452,6 @@ func (e *callExpr) eval(app *app, args []string) {
default: default:
log.Printf("entering unknown execution prefix: %q", app.ui.cmdpref) log.Printf("entering unknown execution prefix: %q", app.ui.cmdpref)
} }
app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
app.ui.cmdpref = "" app.ui.cmdpref = ""
case "cmd-delete-back": case "cmd-delete-back":
if len(app.ui.cmdlacc) > 0 { if len(app.ui.cmdlacc) > 0 {