From bdf20aa451be7b82c85bd51310c699da78da71a7 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 6 Apr 2018 15:06:25 +0300 Subject: [PATCH] handle carriage return in 'shell-pipe' output --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 531fb9d..e63a75a 100644 --- a/app.go +++ b/app.go @@ -245,7 +245,7 @@ func (app *app) runShell(s string, args []string, prefix string) { } buf = append(buf, b) app.ui.exprChan <- multiExpr{&callExpr{"echo", []string{string(buf)}}, 1} - if b == '\n' { + if b == '\n' || b == '\r' { buf = nil } }