diff --git a/renderer.go b/renderer.go index 6c472dc..bb99d3c 100644 --- a/renderer.go +++ b/renderer.go @@ -153,6 +153,10 @@ func (r *renderer) flush() { r.linesRendered++ } + // Make sure the cursor is at the start of the last line to keep rendering + // behavior consistent. + moveCursor(out, r.linesRendered, 0) + _, _ = r.out.Write(out.Bytes()) r.lastRender = r.buf.String() r.buf.Reset()