From 52be0b3aabbaeba019717b89fb7dbb6319275125 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 7 Feb 2019 00:34:42 +0300 Subject: [PATCH] handle shell-pipe prompts properly Related #137 --- eval.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eval.go b/eval.go index 83ebf8c..027b576 100644 --- a/eval.go +++ b/eval.go @@ -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