From aa8a32974561f93cbae3bf397474d903e12886e9 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Tue, 28 Jun 2016 21:26:19 -0400 Subject: [PATCH] Fix JumpLine range Fixes #187 --- cmd/micro/bindings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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