Skip to content

Commit efe17f0

Browse files
committed
fix:according to renderProgressBar, only update spinner when ignore length.
1 parent fbe274c commit efe17f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

progressbar.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ func NewOptions64(max int64, options ...Option) *ProgressBar {
399399
if b.config.invisible {
400400
return
401401
}
402+
if !b.config.ignoreLength {
403+
return
404+
}
402405
ticker := time.NewTicker(b.config.spinnerChangeInterval)
403406
defer ticker.Stop()
404407
for {

0 commit comments

Comments
 (0)