From 18f7230662a5b8a5381d6b88ddd94621844e22bc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 29 Jul 2022 15:42:44 +0900 Subject: [PATCH] Fix mouse location in --height mode Fix #2900 --- 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 d6eb021..b4117bc 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -540,7 +540,7 @@ func (r *LightRenderer) mouseSequence(sz *int) Event { t := atoi(elems[0], -1) x := atoi(elems[1], -1) - 1 - y := atoi(elems[2], -1) - 1 + y := atoi(elems[2], -1) - 1 - r.yoffset if t < 0 || x < 0 || y < 0 { return Event{Invalid, 0, nil} }