Skip to content

Commit 35a7103

Browse files
committed
term: fix remove colors
1 parent 4cddb65 commit 35a7103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

term/term.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func removeColors(isTerminal bool, a []any) []any {
157157
}
158158
args := make([]any, len(a))
159159
for i := range a {
160-
s := getColorizedString(arg)
160+
s := getColorizedString(a[i])
161161
if s != nil && (!isTerminal || !isSupportsAnsi || s.color.Is256()) {
162162
args[i] = s.value
163163
} else {

0 commit comments

Comments
 (0)