Skip to content
Myr

We actually never needed to correct the top boundary

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 6e75920 · Browse files · 1 file+0 added−2 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+0 added−2 removed

  • other:+0 added−2 removed

1 file+0 added−2 removed

modified:renderer.go-2 removed
205 unmodified lines
206func (r *renderer) insertTop(lines []string, topBoundary, bottomBoundary int) {207 r.mtx.Lock()208 defer r.mtx.Unlock()209210 topBoundary += 1210 b := new(bytes.Buffer)211212 changeScrollingRegion(b, topBoundary, bottomBoundary)213 moveCursor(b, topBoundary, 0)
16 unmodified lines
230func (r *renderer) insertBottom(lines []string, topBoundary, bottomBoundary int) {231 r.mtx.Lock()232 defer r.mtx.Unlock()233235 topBoundary += 1234 b := new(bytes.Buffer)235236 changeScrollingRegion(b, topBoundary, bottomBoundary)237 moveCursor(b, bottomBoundary, 0)
114 unmodified lines