Fix: mouse clicking with softwrap

When clicking on a long line with softwrap turned on, the cursor will show up in the wrong location (`screenY` will be wrong in `GetSoftWrapLocation`). This seems to fix it.
This commit is contained in:
Nicolai Søborg
2016-12-18 00:27:06 +01:00
committed by GitHub
parent 3f02e12539
commit 37ae99ccd9

View File

@@ -418,9 +418,6 @@ func (v *View) MoveToMouseClick(x, y int) {
v.ScrollDown(1)
y = v.Height + v.Topline - 1
}
if y >= v.Buf.NumLines {
y = v.Buf.NumLines - 1
}
if y < 0 {
y = 0
}