Skip to content
Myr

Fix render's view clearing loop

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 217c506 · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:renderer.go+2 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)152153 // Check and see if we should skip rendering for this line. That154 // includes clearing the line, which we normally do before a155 // render.156 if _, exists := r.ignoreLines[i]; !exists {157 clearLine(out)158 }157 cursorUp(out)159 }160 }161 r.linesRendered = 0162
99 unmodified lines