Fix mouse click offset when list is scrolled

This commit is contained in:
Junegunn Choi 2015-01-05 01:40:19 +09:00
parent 8e5ecf6b38
commit dee0909d2b

View File

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