avoid overwriting messages after shell commands

Related #441
This commit is contained in:
Gokcehan 2020-09-05 17:41:17 +03:00
parent b608682580
commit 3c8b5a5630
2 changed files with 0 additions and 3 deletions

1
app.go
View File

@ -491,7 +491,6 @@ func (app *app) runShell(s string, args []string, prefix string) {
} }
app.ui.loadFile(app.nav) app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
switch prefix { switch prefix {
case "%": case "%":

View File

@ -788,11 +788,9 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.screen.Sync() app.ui.screen.Sync()
app.nav.height = app.ui.wins[0].h app.nav.height = app.ui.wins[0].h
app.ui.loadFile(app.nav) app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
case "load": case "load":
app.nav.renew() app.nav.renew()
app.ui.loadFile(app.nav) app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
case "reload": case "reload":
if err := app.nav.reload(); err != nil { if err := app.nav.reload(); err != nil {
app.ui.echoerrf("reload: %s", err) app.ui.echoerrf("reload: %s", err)