From 3c8b5a5630bf03d6264775060bb5872587c6f9c3 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 5 Sep 2020 17:41:17 +0300 Subject: [PATCH] avoid overwriting messages after shell commands Related #441 --- app.go | 1 - eval.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/app.go b/app.go index d33d065..4f01347 100644 --- a/app.go +++ b/app.go @@ -491,7 +491,6 @@ func (app *app) runShell(s string, args []string, prefix string) { } app.ui.loadFile(app.nav) - app.ui.loadFileInfo(app.nav) switch prefix { case "%": diff --git a/eval.go b/eval.go index f2702cc..ec82326 100644 --- a/eval.go +++ b/eval.go @@ -788,11 +788,9 @@ func (e *callExpr) eval(app *app, args []string) { app.ui.screen.Sync() app.nav.height = app.ui.wins[0].h app.ui.loadFile(app.nav) - app.ui.loadFileInfo(app.nav) case "load": app.nav.renew() app.ui.loadFile(app.nav) - app.ui.loadFileInfo(app.nav) case "reload": if err := app.nav.reload(); err != nil { app.ui.echoerrf("reload: %s", err)