refresh preview after search

Mentioned in #78.
This commit is contained in:
Gokcehan 2017-04-19 17:02:15 +03:00
parent 52fbe460b7
commit 3eca9059bf

View File

@ -445,10 +445,14 @@ func (e *callExpr) eval(app *app, args []string) {
log.Printf("search: %s", s) log.Printf("search: %s", s)
app.nav.search = s app.nav.search = s
app.nav.searchNext() app.nav.searchNext()
app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
case "?": case "?":
log.Printf("search-back: %s", s) log.Printf("search-back: %s", s)
app.nav.search = s app.nav.search = s
app.nav.searchPrev() app.nav.searchPrev()
app.ui.loadFile(app.nav)
app.ui.loadFileInfo(app.nav)
default: default:
log.Printf("entering unknown execution prefix: %q", app.ui.cmdpref) log.Printf("entering unknown execution prefix: %q", app.ui.cmdpref)
} }