forked from Mirrors/bubbletea
Also repaint non-scrolling stuff when resizing
This commit is contained in:
parent
6bd34bdd14
commit
2a297fabad
|
@ -253,6 +253,12 @@ func (r *renderer) handleMessages(msg Msg) {
|
|||
r.clearIgnoredLines()
|
||||
|
||||
case syncScrollAreaMsg:
|
||||
// Clear buffer to force non-scrolling stuff to repaint
|
||||
r.mtx.Lock()
|
||||
r.buf.Reset()
|
||||
r.mtx.Unlock()
|
||||
|
||||
// Re-render scrolling area
|
||||
r.clearIgnoredLines()
|
||||
r.setIgnoredLines(msg.topBoundary, msg.bottomBoundary)
|
||||
r.insertTop(msg.lines, msg.topBoundary, msg.bottomBoundary)
|
||||
|
|
Loading…
Reference in New Issue