Copy selection to primary on mouse release

Fixes #1558
This commit is contained in:
Zachary Yedidia
2020-03-05 16:00:40 -05:00
parent 629efe5eb7
commit 527750b68d

View File

@@ -343,10 +343,11 @@ func (h *BufPane) HandleEvent(event tcell.Event) {
// release the mouse
// if !h.doubleClick && !h.tripleClick {
// h.Cursor.Loc = mouseLoc
// h.Cursor.SetSelectionEnd(h.Cursor.Loc)
// h.Cursor.CopySelection("primary")
// }
if h.Cursor.HasSelection() {
h.Cursor.CopySelection("primary")
}
h.mouseReleased = true
}
}