handle shell-pipe prompts properly

Related #137
This commit is contained in:
Gokcehan 2019-02-07 00:34:42 +03:00
parent bd889a9e06
commit 52be0b3aab

View File

@ -491,7 +491,10 @@ func insert(app *app, arg string) {
}
func (e *callExpr) eval(app *app, args []string) {
if app.ui.cmdPrefix != "" && e.name != "redraw" && !strings.HasPrefix(e.name, "cmd-") {
if app.ui.cmdPrefix != "" &&
app.ui.cmdPrefix != ">" &&
e.name != "redraw" &&
!strings.HasPrefix(e.name, "cmd-") {
app.ui.menuBuf = nil
app.ui.cmdAccLeft = nil
app.ui.cmdAccRight = nil