Skip to content

Commit

Permalink
fix: prevent double repaint when restoring terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Oct 9, 2022
1 parent 1c3b792 commit c54b330
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,11 @@ func (p *Program) RestoreTerminal() error {

if p.altScreenWasActive {
p.renderer.enterAltScreen()
} else {
// entering alt screen already causes a repaint.
go p.Send(repaintMsg{})
}

go p.Send(repaintMsg{})

return nil
}

Expand Down

0 comments on commit c54b330

Please sign in to comment.