summaryrefslogtreecommitdiff
path: root/helm-ring.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-05-04 07:15:07 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-05-04 07:15:07 +0200
commitd6e8b66c7ff52a390c5b40cf4842f4df005920f8 (patch)
treeaa881d8fed1fa6e4621975c2d657bdb8ca851314 /helm-ring.el
parent85573410bfd39ddb13d6e150b35112216a1a592a (diff)
Prevent inserting and saving highlighted items in kill ring
* helm-ring.el (helm-kill-ring-action-yank-1):
Diffstat (limited to 'helm-ring.el')
-rw-r--r--helm-ring.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/helm-ring.el b/helm-ring.el
index 9e136637..ef3d5254 100644
--- a/helm-ring.el
+++ b/helm-ring.el
@@ -176,6 +176,8 @@ replace with STR as yanked string."
(set-marker (mark-marker)
(point)
helm-current-buffer)))))))
+ ;; Prevent inserting and saving highlighted items.
+ (set-text-properties 0 (length str) nil str)
(with-helm-current-buffer
(unwind-protect
(progn