forked from Mirrors/bubbletea
chore: don't use deprecated methods internally
This commit is contained in:
parent
a11ff932fa
commit
1c3b792596
3
tea.go
3
tea.go
|
@ -566,13 +566,12 @@ func (p *Program) RestoreTerminal() error {
|
||||||
if err := p.initTerminal(); err != nil {
|
if err := p.initTerminal(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := p.initCancelReader(); err != nil {
|
if err := p.initCancelReader(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if p.altScreenWasActive {
|
if p.altScreenWasActive {
|
||||||
p.EnterAltScreen()
|
p.renderer.enterAltScreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
go p.Send(repaintMsg{})
|
go p.Send(repaintMsg{})
|
||||||
|
|
Loading…
Reference in New Issue