From 05f30284529573939392bc09e67ae569f9521b51 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 22 Jun 2020 14:35:46 -0400 Subject: [PATCH] Move cursor in a relative fashion in standard render (fixes inline rendering) --- renderer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer.go b/renderer.go index bb99d3c..18cbd6c 100644 --- a/renderer.go +++ b/renderer.go @@ -155,7 +155,7 @@ func (r *renderer) flush() { // Make sure the cursor is at the start of the last line to keep rendering // behavior consistent. - moveCursor(out, r.linesRendered, 0) + cursorBack(out, r.width) _, _ = r.out.Write(out.Bytes()) r.lastRender = r.buf.String()