mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
parent
22257df9a4
commit
aa8a329745
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ func (v *View) JumpLine() bool {
|
|||
return false
|
||||
}
|
||||
// Move cursor and view if possible.
|
||||
if lineint < v.Buf.NumLines {
|
||||
if lineint < v.Buf.NumLines && lineint >= 0 {
|
||||
v.Cursor.X = 0
|
||||
v.Cursor.Y = lineint
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue