From c71e816e372c6ec6603e4d0dd762ca343274c44c Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 4 Sep 2016 21:28:40 -0400 Subject: [PATCH] Fix recursive function --- cmd/micro/cursor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/micro/cursor.go b/cmd/micro/cursor.go index c3754099..76c9d5b6 100644 --- a/cmd/micro/cursor.go +++ b/cmd/micro/cursor.go @@ -37,14 +37,14 @@ func (c *Cursor) ResetSelection() { // SetSelectionStart sets the start of the selection func (c *Cursor) SetSelectionStart(pos Loc) { - c.SetSelectionStart(pos) + c.CurSelection[0] = pos // Copy to primary clipboard for linux clipboard.WriteAll(c.GetSelection(), "primary") } // SetSelectionEnd sets the end of the selection func (c *Cursor) SetSelectionEnd(pos Loc) { - c.SetSelectionEnd(pos) + c.CurSelection[1] = pos // Copy to primary clipboard for linux clipboard.WriteAll(c.GetSelection(), "primary") }