Skip to content

Commit

Permalink
fix: Newline printing improperly in some situations
Browse files Browse the repository at this point in the history
Fixes #108
  • Loading branch information
5HT2 committed Oct 6, 2021
1 parent fa76ccc commit 33cab3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progressbar.go
Expand Up @@ -324,7 +324,7 @@ func DefaultBytes(maxBytes int64, description ...string) *ProgressBar {
OptionThrottle(65*time.Millisecond),
OptionShowCount(),
OptionOnCompletion(func() {
fmt.Fprint(os.Stderr, "\n")
fmt.Printf("\n")
}),
OptionSpinnerType(14),
OptionFullWidth(),
Expand Down Expand Up @@ -373,7 +373,7 @@ func Default(max int64, description ...string) *ProgressBar {
OptionShowCount(),
OptionShowIts(),
OptionOnCompletion(func() {
fmt.Fprint(os.Stderr, "\n")
fmt.Printf("\n")
}),
OptionSpinnerType(14),
OptionFullWidth(),
Expand Down

0 comments on commit 33cab3a

Please sign in to comment.