diff --git a/progressbar.go b/progressbar.go index 5927778..4c268be 100644 --- a/progressbar.go +++ b/progressbar.go @@ -625,7 +625,7 @@ func (p *ProgressBar) render() error { } if p.state.finished { // when using ANSI codes we don't pre-clean the current line - if p.config.useANSICodes { + if p.config.useANSICodes && p.config.clearOnFinish { err := clearProgressBar(p.config, p.state) if err != nil { return err