mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
fix: also lock mutex when accessing state read-only
This commit is contained in:
@@ -264,6 +264,9 @@ func (r *standardRenderer) clearScreen() {
|
||||
}
|
||||
|
||||
func (r *standardRenderer) altScreen() bool {
|
||||
r.mtx.Lock()
|
||||
defer r.mtx.Unlock()
|
||||
|
||||
return r.altScreenActive
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user