[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil 62df6ee1c3 2/3: gv works properly after visual paste
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil 62df6ee1c3 2/3: gv works properly after visual paste |
Date: |
Fri, 7 Jan 2022 07:58:06 -0500 (EST) |
branch: elpa/evil
commit 62df6ee1c37cd4d7a27fc07c305b7486ea990efe
Author: Tom Dalziel <tom_dl@hotmail.com>
Commit: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>
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 4611666039..4055e89312 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)