From 660a82725884488782b6ccf0d872272d3a43b941 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Tue, 19 Jul 2022 17:39:18 +0100 Subject: [PATCH] Revert "fix: Newline printing improperly in some situations" This reverts commit 33cab3a58c5d5dc5ab60d933e4bcd9df8ed9e5f0. --- progressbar.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/progressbar.go b/progressbar.go index 7720bd8..b67bb5b 100644 --- a/progressbar.go +++ b/progressbar.go @@ -326,7 +326,7 @@ func DefaultBytes(maxBytes int64, description ...string) *ProgressBar { OptionThrottle(65*time.Millisecond), OptionShowCount(), OptionOnCompletion(func() { - fmt.Printf("\n") + fmt.Fprint(os.Stderr, "\n") }), OptionSpinnerType(14), OptionFullWidth(), @@ -375,7 +375,7 @@ func Default(max int64, description ...string) *ProgressBar { OptionShowCount(), OptionShowIts(), OptionOnCompletion(func() { - fmt.Printf("\n") + fmt.Fprint(os.Stderr, "\n") }), OptionSpinnerType(14), OptionFullWidth(),