From 62df6ee1c37cd4d7a27fc07c305b7486ea990efe Mon Sep 17 00:00:00 2001 From: Tom Dalziel Date: Thu, 6 Jan 2022 18:17:09 +0100 Subject: gv works properly after visual paste --- evil-commands.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evil-commands.el b/evil-commands.el index 4611666..4055e89 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2242,6 +2242,9 @@ The return value is the yanked text." (evil-paste-before count register)))) (when evil-kill-on-visual-paste (current-kill -1)) + ;; Ensure that gv can restore visually pasted area... + (setq evil-visual-mark (evil-get-marker ?\[ t) + evil-visual-point (evil-get-marker ?\] t)) ;; mark the last paste as visual-paste (setq evil-last-paste (list (nth 0 evil-last-paste) -- cgit v1.0