aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--evil-commands.el3
1 files changed, 3 insertions, 0 deletions
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)