mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-11 01:51:00 +00:00
Merge pull request #435 from jncraton/bottomline-selection-fix
Search entire file for soft wrap location instead of line 1 to the number of lines in view
This commit is contained in:
commit
eee9c54a27
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue