Skip to content

Commit

Permalink
Merge pull request #67 from cmzz/master
Browse files Browse the repository at this point in the history
Fix repeat out prefix(zh-cn) on mac
  • Loading branch information
briandowns committed Jul 4, 2020
2 parents 2123868 + 7a10417 commit 32574ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinner.go
Expand Up @@ -303,9 +303,9 @@ func (s *Spinner) Start() {
outColor = fmt.Sprintf("\r%s%s%s ", s.Prefix, s.color(s.chars[i]), s.Suffix)
}
} else {
outColor = fmt.Sprintf("%s%s%s ", s.Prefix, s.color(s.chars[i]), s.Suffix)
outColor = fmt.Sprintf("\r%s%s%s ", s.Prefix, s.color(s.chars[i]), s.Suffix)
}
outPlain := fmt.Sprintf("%s%s%s ", s.Prefix, s.chars[i], s.Suffix)
outPlain := fmt.Sprintf("\r%s%s%s ", s.Prefix, s.chars[i], s.Suffix)
fmt.Fprint(s.Writer, outColor)
s.lastOutput = outPlain
delay := s.Delay
Expand Down

0 comments on commit 32574ea

Please sign in to comment.