Search entire file instead of line 1 to the number of lines in view

This commit is contained in:
Jon Craton
2016-10-28 19:42:17 -04:00
parent 74610b8cd7
commit 9719e6caa7

View File

@@ -291,7 +291,7 @@ func (v *View) GetSoftWrapLocation(vx, vy int) (int, int) {
}
screenX, screenY := 0, v.Topline
for lineN := v.Topline; lineN < v.height; lineN++ {
for lineN := v.Topline; lineN < v.Bottomline(); lineN++ {
line := v.Buf.Line(lineN)
colN := 0