mirror of
https://github.com/docker/compose.git
synced 2026-06-28 04:03:48 +00:00
In narrow terminals (e.g. tmux panes), the TTY progress UI emitted lines wider than terminalWidth because adjustLineWidth could shrink details and taskID but never the progress field. When progress carried the "X.XMB / Y.YMB" size suffix, the truncation loop exited with overflow > 0 and applyPadding's max(timerPad, 1) floor pushed the line one char over. tmux then wrapped the line visually while print() kept counting logical lines, desyncing aec.Up() on the next render and producing the mangled "[+] pull X/Y" header overwriting prior task lines. Track the size suffix byte length on lineData and let adjustLineWidth drop it as an intermediate truncation step before abbreviating the taskID. Fixes docker/compose#13595 Signed-off-by: Guillaume Lours <glours@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| colors.go | ||
| dryrun.go | ||
| json.go | ||
| json_test.go | ||
| mode.go | ||
| plain.go | ||
| quiet.go | ||
| spinner.go | ||
| tty.go | ||
| tty_test.go | ||