diff --git a/internal/action/bufpane.go b/internal/action/bufpane.go index a7a7d91b..91e2040e 100644 --- a/internal/action/bufpane.go +++ b/internal/action/bufpane.go @@ -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 } }