mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
@@ -327,6 +327,9 @@ func (v *View) MoveToMouseClick(x, y int) {
|
|||||||
if y >= len(v.buf.lines) {
|
if y >= len(v.buf.lines) {
|
||||||
y = len(v.buf.lines) - 1
|
y = len(v.buf.lines) - 1
|
||||||
}
|
}
|
||||||
|
if y < 0 {
|
||||||
|
y = 0
|
||||||
|
}
|
||||||
if x < 0 {
|
if x < 0 {
|
||||||
x = 0
|
x = 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user