Skip to content
Myr

Actively place the cursor after a normal render

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 ebbab29 · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:renderer.go+4 added
151 unmodified lines
152 }153 r.linesRendered++154 }155156 // Make sure the cursor is at the start of the last line to keep rendering157 // behavior consistent.158 moveCursor(out, r.linesRendered, 0)159160 _, _ = r.out.Write(out.Bytes())161 r.lastRender = r.buf.String()162 r.buf.Reset()163}
198 unmodified lines