Skip to content
Myr

Add lock for updating width and height

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kiyon · committed by Christian Muehlhaeuser · parent ab65f23 · Browse files · 1 file+2 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:standard_renderer.go+2 added
290 unmodified lines
291// handleMessages handles internal messages for the renderer.292func (r *standardRenderer) handleMessages(msg Msg) {293 switch msg := msg.(type) {294 case WindowSizeMsg:295 r.mtx.Lock()296 r.width = msg.Width297 r.height = msg.Height298 r.mtx.Unlock()299300 case clearScrollAreaMsg:301 r.clearIgnoredLines()302
99 unmodified lines