Skip to content

Commit

Permalink
counsel.el (counsel--yank-pop-kills): Keep first dup
Browse files Browse the repository at this point in the history
  • Loading branch information
basil-conto committed Dec 12, 2017
1 parent 620a966 commit b2175ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counsel.el
Expand Up @@ -3187,7 +3187,7 @@ unique under `equal-including-properties'."
(dolist (sym '(kill-ring kill-ring-yank-pointer))
(set sym (cl-delete-duplicates
(cl-delete-if-not counsel-yank-pop-filter (symbol-value sym))
:test #'equal-including-properties)))
:test #'equal-including-properties :from-end t)))
;; Clean up completion candidates without modifying `kill-ring' elements
(mapcar (lambda (kill)
(ivy-cleanup-string (copy-sequence kill)))
Expand Down

0 comments on commit b2175ea

Please sign in to comment.