mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Actively place the cursor after a normal render
This commit is contained in:
@@ -153,6 +153,10 @@ func (r *renderer) flush() {
|
||||
r.linesRendered++
|
||||
}
|
||||
|
||||
// Make sure the cursor is at the start of the last line to keep rendering
|
||||
// behavior consistent.
|
||||
moveCursor(out, r.linesRendered, 0)
|
||||
|
||||
_, _ = r.out.Write(out.Bytes())
|
||||
r.lastRender = r.buf.String()
|
||||
r.buf.Reset()
|
||||
|
||||
Reference in New Issue
Block a user