Skip to content

Commit

Permalink
No need to touch mouse flag if it's already false
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Jan 24, 2023
1 parent d0a0f3c commit ae897c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tui/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func (r *LightRenderer) Resume(clear bool, sigcont bool) {
}
r.enableMouse()
r.flush()
} else if sigcont && !r.fullscreen {
} else if sigcont && !r.fullscreen && r.mouse {
// NOTE: SIGCONT (Coming back from CTRL-Z):
// It's highly likely that the offset we obtained at the beginning is
// no longer correct, so we simply disable mouse input.
Expand Down

0 comments on commit ae897c8

Please sign in to comment.