diff options
author | Gokcehan <gokcehankara@gmail.com> | 2018-05-20 20:42:19 +0300 |
---|---|---|
committer | Gokcehan <gokcehankara@gmail.com> | 2018-05-20 20:42:19 +0300 |
commit | 397d5e0faca4befabb76dc9f0a37ba2621295c64 (patch) | |
tree | 6154cda171a29161191024defdbc4679d431a5ad | |
parent | 9400f07e455cca535b012637c615d28d5b7cc4b0 (diff) |
disable history when a command is runningr4
-rw-r--r-- | eval.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |