emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/transient 81c0772c19 139/366: transient-infix-read: Rem


From: Jonas Bernoulli
Subject: [elpa] externals/transient 81c0772c19 139/366: transient-infix-read: Remove ivy-index property from history element
Date: Tue, 25 Jan 2022 18:54:35 -0500 (EST)

branch: externals/transient
commit 81c0772c19b366fb77e699dd740d776735c83f72
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient-infix-read: Remove ivy-index property from history element
    
    Ivy does not remove the ivy-index property from the string that
    it pushes onto the history.  It shouldn't do that.  Remove that
    and any other property that it might put there in the future.
---
 lisp/transient.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/transient.el b/lisp/transient.el
index 7bfadd722a..df61d2df0e 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2227,6 +2227,9 @@ it\", in which case it is pointless to preserve history.)"
               ((and (equal value "\"\"") allow-empty)
                (setq value "")))
         (when value
+          (when (bound-and-true-p ivy-mode)
+            (set-text-properties 0 (length (car transient--history)) nil
+                                 (car transient--history)))
           (setf (alist-get history-key transient-history)
                 (delete-dups transient--history)))
         value))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]