From cba701c8f31b60cac62bf5a3341fa531fe5c4a2d Mon Sep 17 00:00:00 2001 From: Yann Dutrieux Date: Fri, 29 Mar 2024 13:00:44 +0100 Subject: [PATCH] Preserve text properties upon evil-paste --- evil-commands.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evil-commands.el b/evil-commands.el index a718f365..f8b5bd62 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2227,7 +2227,7 @@ The return value is the yanked text." ;; no yank-handler, default (when (vectorp text) (setq text (evil-vector-to-string text))) - (set-text-properties 0 (length text) nil text) + ;; (set-text-properties 0 (length text) nil text) (push-mark opoint t) (dotimes (_ (or count 1)) (insert-for-yank text)) @@ -2279,7 +2279,7 @@ The return value is the yanked text." ;; no yank-handler, default (when (vectorp text) (setq text (evil-vector-to-string text))) - (set-text-properties 0 (length text) nil text) + ;; (set-text-properties 0 (length text) nil text) (unless (eolp) (forward-char)) (push-mark (point) t) ;; TODO: Perhaps it is better to collect a list of all