disable history when a command is running

This commit is contained in:
Gokcehan 2018-05-20 20:42:19 +03:00
parent 9400f07e45
commit 397d5e0fac

View File

@ -537,7 +537,7 @@ func (e *callExpr) eval(app *app, args []string) {
log.Printf("entering unknown execution prefix: %q", app.ui.cmdPrefix)
}
case "cmd-history-next":
if app.ui.cmdPrefix == "" {
if app.ui.cmdPrefix == "" || app.ui.cmdPrefix == ">" {
return
}
if app.cmdHistoryInd > 0 {
@ -556,6 +556,9 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.cmdAccRight = nil
app.ui.menuBuf = nil
case "cmd-history-prev":
if app.ui.cmdPrefix == ">" {
return
}
if app.ui.cmdPrefix == "" {
app.cmdHistoryInd = 0
}