Skip to content

Commit 6979ab0

Browse files
committed
list/tree: Fix some escape codes included in nonTTY
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent a9b78da commit 6979ab0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/command/image/tree.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ func (h imgColumn) PrintR(clr aec.ANSI, s string) string {
338338

339339
type noColor struct{}
340340

341-
func (a noColor) With(ansi ...aec.ANSI) aec.ANSI {
342-
return aec.NewBuilder(ansi...).ANSI
341+
func (a noColor) With(_ ...aec.ANSI) aec.ANSI {
342+
return a
343343
}
344344

345345
func (a noColor) Apply(s string) string {

0 commit comments

Comments
 (0)