update current file after shell commands
This commit is contained in:
parent
90e3a22dc8
commit
6792ed86df
6
eval.go
6
eval.go
@ -426,17 +426,15 @@ 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)
|
||||||
}
|
}
|
||||||
|
app.ui.loadFile(app.nav)
|
||||||
|
app.ui.loadFileInfo(app.nav)
|
||||||
app.ui.cmdpref = ""
|
app.ui.cmdpref = ""
|
||||||
case "cmd-delete-back":
|
case "cmd-delete-back":
|
||||||
if len(app.ui.cmdlacc) > 0 {
|
if len(app.ui.cmdlacc) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user