diff --git a/progress.go b/progress.go index fb3892d..1150d50 100644 --- a/progress.go +++ b/progress.go @@ -252,9 +252,6 @@ // this ensures no bar ends up with less than 100% rendered defer func() { s.barShutdownQueue = append(s.barShutdownQueue, b) - if !b.noPop && s.popCompleted { - b.priority = -1 - } }() } lineCount += b.extendedLines + 1 @@ -361,6 +358,10 @@ } } + if s.popCompleted && !bs.noPop { + bs.priority = -1 + } + bs.bufP = bytes.NewBuffer(make([]byte, 0, bs.width)) bs.bufB = bytes.NewBuffer(make([]byte, 0, bs.width)) bs.bufA = bytes.NewBuffer(make([]byte, 0, bs.width))