Fix mouse event above fzf finder

Fix #2949
This commit is contained in:
Junegunn Choi committed 2022-11-18 20:32:59 +09:00
1 parent 1bebd6f4f5
commit a38b63be18
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -545,7 +545,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 - r.yoffset
if t < 0 || x < 0 || y < 0 {
if t < 0 || x < 0 {
return Event{Invalid, 0, nil}
}
*sz += end + 1