summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-01-05 01:40:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-01-05 01:40:19 +0900
commitdee0909d2bd665a885855c366ed2b2137819d8fb (patch)
tree34706830cfbc810fca1ea40fa30eda6d7ab9a735
parent8e5ecf6b383c35c7f33f7933e35959c2fc9b893c (diff)
downloadfzf-dee0909d2bd665a885855c366ed2b2137819d8fb.tar.gz
Fix mouse click offset when list is scrolled
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 4d5c9cc1..28a9a332 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -526,7 +526,7 @@ func (t *Terminal) Loop() {
req(REQ_PROMPT)
} else if my >= 2 {
// List
- t.cy = my - 2
+ t.cy = t.offset + my - 2
if me.Mod {
toggle()
}