From f034fdd7766522dae18f6ebc4d0a92e8a971fb3c Mon Sep 17 00:00:00 2001 From: Maxwell Huang-Hobbs Date: Mon, 28 Feb 2022 17:20:42 -0500 Subject: [PATCH] Revert "fix off by one in std renderer" This reverts commit c1af0c9fde5078fc92d570a55e36f3faee259f03. --- standard_renderer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/standard_renderer.go b/standard_renderer.go index 1f8cb47cfd..f88dd2bc14 100644 --- a/standard_renderer.go +++ b/standard_renderer.go @@ -147,14 +147,14 @@ func (r *standardRenderer) flush() { skipLines[i] = struct{}{} jumpedLines++ } else { - cursorUpBy(out, jumpedLines) - clearLine(out) - + cursorUpBy(out, jumpedLines+1) jumpedLines = 0 + // otherwise, clear the line so the new rendering can write into it + clearLine(out) } } if jumpedLines >= 1 { - cursorUpBy(out, jumpedLines+1) + cursorUpBy(out, jumpedLines) } if _, exists := r.ignoreLines[0]; !exists {