diff options
| author | Tom Dalziel <tom_dl@hotmail.com> | 2022-01-06 18:17:09 +0100 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2022-01-07 13:18:49 +0100 |
| commit | 62df6ee1c37cd4d7a27fc07c305b7486ea990efe (patch) | |
| tree | e250d85f593756fc3ae083ac2b7a45a98ba4eda6 /evil-commands.el | |
| parent | 94fda4cc6416b326426bdf650a15dcd32d197f70 (diff) | |
gv works properly after visual paste
Diffstat (limited to 'evil-commands.el')
| -rw-r--r-- | evil-commands.el | 3 |
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) |
