From f3407b2d61936c4de73f969700d449c4eb13c4b0 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Fri, 17 May 2019 17:52:58 +0200 Subject: [PATCH] Remain in command mode after cmd-history-next (#168) --- eval.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eval.go b/eval.go index dc09c2b..5ce5efc 100644 --- a/eval.go +++ b/eval.go @@ -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]