mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Fix render's view clearing loop
This commit is contained in:
@@ -148,13 +148,14 @@ func (r *renderer) flush() {
|
||||
if r.linesRendered > 0 {
|
||||
// Clear the lines we painted in the last render.
|
||||
for i := r.linesRendered; i > 0; i-- {
|
||||
cursorUp(out)
|
||||
|
||||
// Check and see if we should skip rendering for this line. That
|
||||
// includes clearing the line, which we normally do before a
|
||||
// render.
|
||||
if _, exists := r.ignoreLines[i]; !exists {
|
||||
clearLine(out)
|
||||
}
|
||||
cursorUp(out)
|
||||
}
|
||||
}
|
||||
r.linesRendered = 0
|
||||
|
||||
Reference in New Issue
Block a user