Skip to content

Commit

Permalink
fix: show the cursor on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 21, 2024
1 parent 8635fb3 commit fe88dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (p *Program) restoreTerminalState() error {
p.execute(ansi.DisableBracketedPaste)
}
if p.renderer != nil {
if !p.cursorHidden {
if p.renderer.Mode(hideCursor) {
p.renderer.SetMode(hideCursor, false)
}
}
Expand Down

0 comments on commit fe88dd5

Please sign in to comment.