Skip to content

Commit

Permalink
Fixes case where bar was being cleared on finished even with clearOnF…
Browse files Browse the repository at this point in the history
…inish==false; Issue #75.
  • Loading branch information
janpfeifer committed Oct 22, 2022
1 parent 9e099d3 commit 087d45b
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 087d45b

Please sign in to comment.