Skip to content

Commit

Permalink
Merge pull request #140 from janpfeifer/master
Browse files Browse the repository at this point in the history
Fixes case where bar was being incorrectly cleared on finished #75
  • Loading branch information
schollz committed Oct 22, 2022
2 parents 9e099d3 + 087d45b commit 3ad62b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progressbar.go
Expand Up @@ -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
Expand Down

0 comments on commit 3ad62b6

Please sign in to comment.