mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-22 17:00:23 +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) {
|
||||
y = len(v.buf.lines) - 1
|
||||
}
|
||||
if y < 0 {
|
||||
y = 0
|
||||
}
|
||||
if x < 0 {
|
||||
x = 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue