forked from Mirrors/bubbletea
fix: don't try to set alt screen when already in desired mode
This commit is contained in:
parent
ca8b21a3e2
commit
f406999cba
|
@ -260,6 +260,10 @@ func (r *standardRenderer) altScreen() bool {
|
|||
}
|
||||
|
||||
func (r *standardRenderer) enterAltScreen() {
|
||||
if r.altScreenActive {
|
||||
return
|
||||
}
|
||||
|
||||
r.mtx.Lock()
|
||||
defer r.mtx.Unlock()
|
||||
|
||||
|
@ -279,6 +283,10 @@ func (r *standardRenderer) enterAltScreen() {
|
|||
}
|
||||
|
||||
func (r *standardRenderer) exitAltScreen() {
|
||||
if !r.altScreenActive {
|
||||
return
|
||||
}
|
||||
|
||||
r.mtx.Lock()
|
||||
defer r.mtx.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue