mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-21 00:07:16 +09:00
Merge pull request #500 from NicolaiSoeborg/patch-1
Fix: mouse clicking with softwrap
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user