From ae897c8cdbbaa8f371c6e2fcb976a594a562e1bf Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 24 Jan 2023 12:45:07 +0900 Subject: [PATCH] No need to touch mouse flag if it's already false --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/light.go b/src/tui/light.go index aca4c0b..322584d 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -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.