[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy 2529a23f9f 1/2: Use add-to-history in ivy-read
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy 2529a23f9f 1/2: Use add-to-history in ivy-read |
Date: |
Thu, 17 Apr 2025 08:20:20 -0400 (EDT) |
branch: externals/ivy
commit 2529a23f9f510a94efa6c088bd14217aa764dafb
Author: Basil L. Contovounesios <basil@contovou.net>
Commit: Basil L. Contovounesios <basil@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/ivy 2529a23f9f 1/2: Use add-to-history in ivy-read,
Basil L. Contovounesios <=