Fix recursive function
This commit is contained in:
parent
6721ec8e7d
commit
c71e816e37
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue