From 6792ed86df0102fea6bb6e1eb64f042d64abcb10 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 15 Jan 2017 15:44:47 +0300 Subject: [PATCH] update current file after shell commands --- eval.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eval.go b/eval.go index 433c6ed..8dfadea 100644 --- a/eval.go +++ b/eval.go @@ -426,17 +426,15 @@ func (e *callExpr) eval(app *app, args []string) { log.Printf("search: %s", s) app.nav.search = s app.nav.searchNext() - app.ui.loadFile(app.nav) - app.ui.loadFileInfo(app.nav) case "?": log.Printf("search-back: %s", s) app.nav.search = s app.nav.searchPrev() - app.ui.loadFile(app.nav) - app.ui.loadFileInfo(app.nav) default: log.Printf("entering unknown execution prefix: %q", app.ui.cmdpref) } + app.ui.loadFile(app.nav) + app.ui.loadFileInfo(app.nav) app.ui.cmdpref = "" case "cmd-delete-back": if len(app.ui.cmdlacc) > 0 {