mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-25 02:10:26 +00:00
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:
parent
3f02e12539
commit
37ae99ccd9
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue