diff --git a/cmd/micro/bindings.go b/cmd/micro/bindings.go index 56a9503a..21db8917 100644 --- a/cmd/micro/bindings.go +++ b/cmd/micro/bindings.go @@ -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