Move cursor in a relative fashion in standard render (fixes inline rendering)

This commit is contained in:
Christian Rocha 2020-06-22 14:35:46 -04:00
parent 719d246edd
commit 05f3028452
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (r *renderer) flush() {
// Make sure the cursor is at the start of the last line to keep rendering // Make sure the cursor is at the start of the last line to keep rendering
// behavior consistent. // behavior consistent.
moveCursor(out, r.linesRendered, 0) cursorBack(out, r.width)
_, _ = r.out.Write(out.Bytes()) _, _ = r.out.Write(out.Bytes())
r.lastRender = r.buf.String() r.lastRender = r.buf.String()