Codebase list golang-github-vbauerster-mpb / e187377
set all priority at init time Vladimir Bauer 6 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
251251 // this ensures no bar ends up with less than 100% rendered
252252 defer func() {
253253 s.barShutdownQueue = append(s.barShutdownQueue, b)
254 if !b.noPop && s.popCompleted {
255 b.priority = -1
256 }
257254 }()
258255 }
259256 lineCount += b.extendedLines + 1
360357 }
361358 }
362359
360 if s.popCompleted && !bs.noPop {
361 bs.priority = -1
362 }
363
363364 bs.bufP = bytes.NewBuffer(make([]byte, 0, bs.width))
364365 bs.bufB = bytes.NewBuffer(make([]byte, 0, bs.width))
365366 bs.bufA = bytes.NewBuffer(make([]byte, 0, bs.width))