mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 06:40:24 +09:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user