diff options
| author | Basil L. Contovounesios <basil@contovou.net> | 2025-04-17 14:09:28 +0200 |
|---|---|---|
| committer | Basil L. Contovounesios <basil@contovou.net> | 2025-04-17 14:09:28 +0200 |
| commit | 2529a23f9f510a94efa6c088bd14217aa764dafb (patch) | |
| tree | 390c23298254203524296a3c6e88f6c3212e0d1d | |
| parent | fd8df3b73348d4b8a1872381bf8642904bf41368 (diff) | |
Use add-to-history in ivy-read
* ivy.el (ivy--update-history): Use add-to-history (#2663, #2954).
| -rw-r--r-- | ivy.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
