fix: also lock mutex when accessing state read-only

This commit is contained in:
Christian Muehlhaeuser
2022-10-13 06:48:26 +02:00
parent db664820d4
commit 99ad2eda0d

View File

@@ -264,6 +264,9 @@ func (r *standardRenderer) clearScreen() {
}
func (r *standardRenderer) altScreen() bool {
r.mtx.Lock()
defer r.mtx.Unlock()
return r.altScreenActive
}