Merge pull request #500 from NicolaiSoeborg/patch-1

Fix: mouse clicking with softwrap
This commit is contained in:
Zachary Yedidia
2016-12-17 19:50:13 -05:00
committed by GitHub

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
}