Fix ordering of selection on SelectAll

Fixes #119
This commit is contained in:
Zachary Yedidia
2016-05-18 09:27:17 -04:00
parent d7b61ecfa8
commit 333c4ac6b1

View File

@@ -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