Skip to content
Myr

Render scroll area before other stuff when resizing

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 468b98d · Browse files · 1 file+5 added−5 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+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:renderer.go+5 added-5 removed
251 unmodified lines
252 case clearScrollAreaMsg:253 r.clearIgnoredLines()254255 case syncScrollAreaMsg:256 // Clear buffer to force non-scrolling stuff to repaint257 r.mtx.Lock()258 r.buf.Reset()259 r.mtx.Unlock()260256 // Re-render scrolling area257 r.clearIgnoredLines()258 r.setIgnoredLines(msg.topBoundary, msg.bottomBoundary)259 r.insertTop(msg.lines, msg.topBoundary, msg.bottomBoundary)260261 // Clear buffer to force non-scrolling stuff to repaint262 r.mtx.Lock()263 r.buf.Reset()264 r.mtx.Unlock()265266 case scrollUpMsg:267 r.insertTop(msg.lines, msg.topBoundary, msg.bottomBoundary)268269 case scrollDownMsg:
59 unmodified lines