handle carriage return in 'shell-pipe' output
This commit is contained in:
parent
847c46421c
commit
bdf20aa451
2
app.go
2
app.go
@ -245,7 +245,7 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
|||||||
}
|
}
|
||||||
buf = append(buf, b)
|
buf = append(buf, b)
|
||||||
app.ui.exprChan <- multiExpr{&callExpr{"echo", []string{string(buf)}}, 1}
|
app.ui.exprChan <- multiExpr{&callExpr{"echo", []string{string(buf)}}, 1}
|
||||||
if b == '\n' {
|
if b == '\n' || b == '\r' {
|
||||||
buf = nil
|
buf = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user