Remain in command mode after cmd-history-next (#168)
This commit is contained in:
parent
a5199960ed
commit
f3407b2d61
5
eval.go
5
eval.go
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user