mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-24 14:13:44 +00:00
parent
119c310045
commit
fa7808b4ae
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue