Codebase list golang-github-vbauerster-mpb / 600056e
reset all buffers if resP.truncate Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
505505 if resP.truncate {
506506 trunc := strings.NewReader(runewidth.Truncate(stripansi.Strip(bufP.String()), resP.width, "…"))
507507 bufP.Reset()
508 bufB.Reset()
509 bufA.Reset()
508510 return trunc, nil
509511 }
510512