branch: externals/ivy commit 2529a23f9f510a94efa6c088bd14217aa764dafb Author: Basil L. Contovounesios <ba...@contovou.net> Commit: Basil L. Contovounesios <ba...@contovou.net>
Use add-to-history in ivy-read * ivy.el (ivy--update-history): Use add-to-history (#2663, #2954). --- ivy.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ivy.el b/ivy.el index cddd64aef8..8d94c2ce5d 100644 --- a/ivy.el +++ b/ivy.el @@ -2279,8 +2279,9 @@ customizations apply to the current completion session." ivy-text))) (cond ((equal item "")) ((stringp item) - (set hist (cons (propertize item 'ivy-index ivy--index) - (delete item (symbol-value hist))))))))) + (let ((history-delete-duplicates t)) + (add-to-history + hist (propertize item 'ivy-index ivy--index)))))))) (defun ivy--cleanup () ;; Fixes a bug in ESS, #1660