diff --git a/internal/action/actions.go b/internal/action/actions.go index 7900a917..345f47c6 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -1047,12 +1047,14 @@ func (h *BufPane) CopyLine() bool { if h.Cursor.HasSelection() { return false } + origLoc := h.Cursor.Loc h.Cursor.SelectLine() h.Cursor.CopySelection(clipboard.ClipboardReg) h.freshClip = true InfoBar.Message("Copied line") h.Cursor.Deselect(true) + h.Cursor.Loc = origLoc h.Relocate() return true }