Fix double-click result when scroll offset is positive

pull/165/merge
Junegunn Choi 9 years ago
parent a88bf87e2a
commit 9f64a00549

@ -697,7 +697,7 @@ func (t *Terminal) Loop() {
} else if me.Double {
// Double-click
if my >= 2 {
if t.vset(my-2) && t.cy < t.merger.Length() {
if t.vset(t.offset+my-2) && t.cy < t.merger.Length() {
req(reqClose)
}
}

Loading…
Cancel
Save