disable history when a command is running
This commit is contained in:
parent
9400f07e45
commit
397d5e0fac
5
eval.go
5
eval.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user