Skip to content

Commit

Permalink
Prevent inserting and saving highlighted items in kill ring
Browse files Browse the repository at this point in the history
* helm-ring.el (helm-kill-ring-action-yank-1):
  • Loading branch information
Thierry Volpiatto committed May 4, 2018
1 parent 8557341 commit d6e8b66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-ring.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6e8b66

Please sign in to comment.