Fix mouse location in --height mode

Fix #2900
This commit is contained in:
Junegunn Choi
2022-07-29 15:42:44 +09:00
parent 728f735281
commit 18f7230662

View File

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