From 333c4ac6b1e18f9743977ea362113beb0997c51b Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Wed, 18 May 2016 09:27:17 -0400 Subject: [PATCH] Fix ordering of selection on SelectAll Fixes #119 --- cmd/micro/bindings.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/micro/bindings.go b/cmd/micro/bindings.go index cb17a94e..e1077d57 100644 --- a/cmd/micro/bindings.go +++ b/cmd/micro/bindings.go @@ -722,8 +722,8 @@ func (v *View) Paste() bool { // SelectAll selects the entire buffer func (v *View) SelectAll() bool { - v.Cursor.curSelection[1] = 0 - v.Cursor.curSelection[0] = v.Buf.Len() + v.Cursor.curSelection[0] = 0 + v.Cursor.curSelection[1] = v.Buf.Len() // Put the cursor at the beginning v.Cursor.x = 0 v.Cursor.y = 0