Skip to content

Commit

Permalink
chore: don't use deprecated methods internally
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Oct 9, 2022
1 parent a11ff93 commit 1c3b792
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,12 @@ func (p *Program) RestoreTerminal() error {
if err := p.initTerminal(); err != nil {
return err
}

if err := p.initCancelReader(); err != nil {
return err
}

if p.altScreenWasActive {
p.EnterAltScreen()
p.renderer.enterAltScreen()
}

go p.Send(repaintMsg{})
Expand Down

0 comments on commit 1c3b792

Please sign in to comment.