No need to touch mouse flag if it's already false

This commit is contained in:
Junegunn Choi 2023-01-24 12:45:07 +09:00
parent d0a0f3c052
commit ae897c8cdb
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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.