Remain in command mode after cmd-history-next (#168)

This commit is contained in:
David Pedersen authored and gokcehan committed 2019-05-17 18:52:58 +03:00
1 parent a5199960ed
commit f3407b2d61
1 file changed
+4 -1
+4 -1
View File
@@ -959,7 +959,10 @@ func (e *callExpr) eval(app *app, args []string) {
app.cmdHistoryInd--
}
if app.cmdHistoryInd == 0 {
normal(app)
app.ui.menuBuf = nil
app.ui.cmdAccLeft = nil
app.ui.cmdAccRight = nil
app.ui.cmdPrefix = ":"
return
}
cmd := app.cmdHistory[len(app.cmdHistory)-app.cmdHistoryInd]