From 3eca9059bf0aff6b5def66039492904d9c21814a Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Wed, 19 Apr 2017 17:02:15 +0300 Subject: [PATCH] refresh preview after search Mentioned in #78. --- eval.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eval.go b/eval.go index 2a38a69..60d4c95 100644 --- a/eval.go +++ b/eval.go @@ -445,10 +445,14 @@ 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) }