Skip to content

Commit 472b188

Browse files
authored
Merge pull request #221 from yevk/main
fix: trailing residual characters in ANSI mode
2 parents 655d41e + 5291f1d commit 472b188

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

progressbar.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,10 @@ func renderProgressBar(c config, s *state) (int, error) {
13651365
str = colorstring.Color(str)
13661366
}
13671367

1368+
if c.useANSICodes {
1369+
str = str + "\033[0K"
1370+
}
1371+
13681372
s.rendered = str
13691373

13701374
return getStringWidth(c, str, false), writeString(c, str)

0 commit comments

Comments
 (0)