Skip to content

Commit 3d8c811

Browse files
committed
Merge branch version/0-36-0-RC1 to adopt changes from PR #2332
2 parents fc4ba7c + b4aa32a commit 3d8c811

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/output/progress.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ func (d *Spinner) Stop(msg string) {
9292
d.stop <- struct{}{}
9393
close(d.stop)
9494

95+
// We're done, so remove the last spinner frame
96+
if d.out.Config().Interactive {
97+
nMoved := d.moveCaretBack()
98+
if nMoved > len(msg) {
99+
msg += strings.Repeat(" ", nMoved-len(msg)-1)
100+
}
101+
}
102+
95103
if msg != "" {
96104
if !d.out.Config().Interactive {
97105
d.out.Fprint(d.out.Config().ErrWriter, " ")

0 commit comments

Comments
 (0)