Skip to content

Commit

Permalink
Revert "fix off by one in std renderer"
Browse files Browse the repository at this point in the history
This reverts commit c1af0c9.
  • Loading branch information
Maxwell Huang-Hobbs committed Feb 28, 2022
1 parent c1af0c9 commit f034fdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions standard_renderer.go
Expand Up @@ -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 {
Expand Down

0 comments on commit f034fdd

Please sign in to comment.