Skip to content

Commit

Permalink
fix single-line CursorUp(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeperGnome authored and meowgorithm committed Oct 30, 2024
1 parent 3dfbcd9 commit dcb05b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standard_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *standardRenderer) flush() {
buf := &bytes.Buffer{}

// Moving to the beginning of the section, that we rendered.
if r.linesRendered > 0 {
if r.linesRendered > 1 {
buf.WriteString(ansi.CursorUp(r.linesRendered - 1))
}

Expand Down

0 comments on commit dcb05b0

Please sign in to comment.