Skip to content

Commit

Permalink
Preserve text properties upon evil-paste
Browse files Browse the repository at this point in the history
  • Loading branch information
ydutrieux committed Mar 29, 2024
1 parent e357183 commit cba701c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evil-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cba701c

Please sign in to comment.