+ c.SetSelectionStart(c.buf.Start())
+ c.SetSelectionEnd(c.buf.Start())
+}
+
+// SetSelectionStart sets the start of the selection
+func (c *Cursor) SetSelectionStart(pos Loc) {
+ c.SetSelectionStart(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)
+ // Copy to primary clipboard for linux
+ clipboard.WriteAll(c.GetSelection(), "primary")