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

This commit is contained in:
David Pedersen 2019-05-17 17:52:58 +02:00 committed by gokcehan
parent a5199960ed
commit f3407b2d61

View File

@ -959,7 +959,10 @@ func (e *callExpr) eval(app *app, args []string) {
app.cmdHistoryInd-- app.cmdHistoryInd--
} }
if app.cmdHistoryInd == 0 { if app.cmdHistoryInd == 0 {
normal(app) app.ui.menuBuf = nil
app.ui.cmdAccLeft = nil
app.ui.cmdAccRight = nil
app.ui.cmdPrefix = ":"
return return
} }
cmd := app.cmdHistory[len(app.cmdHistory)-app.cmdHistoryInd] cmd := app.cmdHistory[len(app.cmdHistory)-app.cmdHistoryInd]