Skip to content
Myr

Fix line clearing bug

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 090c983 · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:renderer.go+6 added-1 removed
146 unmodified lines
147148 if r.linesRendered > 0 {149 // Clear the lines we painted in the last render.150 for i := r.linesRendered; i > 0; i-- {151 cursorUp(out)151152 // Check and see if we should skip rendering for this line. That153 // includes clearing the line, which we normally do before a154 // render.155 if _, exists := r.ignoreLines[i]; !exists {156 clearLine(out)157 }158159 cursorUp(out)160 }161162 if _, exists := r.ignoreLines[0]; !exists {163 clearLine(out)164 }165 }166 r.linesRendered = 0167168 for _, b := range r.buf.Bytes() {
98 unmodified lines