Fix recursive function

This commit is contained in:
Zachary Yedidia 2016-09-04 21:28:40 -04:00
parent 6721ec8e7d
commit c71e816e37

View file

@ -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")
}