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

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

[elpa] externals/corfu 5d0b5e46e3: Add candidates without properties to


From: ELPA Syncer
Subject: [elpa] externals/corfu 5d0b5e46e3: Add candidates without properties to history
Date: Wed, 8 Jun 2022 15:57:25 -0400 (EDT)

branch: externals/corfu
commit 5d0b5e46e30dfe81001befe87c6491929d900e03
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Add candidates without properties to history
    
    Ensure that the history can be persisted by savehist-mode.
---
 extensions/corfu-history.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/extensions/corfu-history.el b/extensions/corfu-history.el
index 734404472b..bdd97b69a0 100644
--- a/extensions/corfu-history.el
+++ b/extensions/corfu-history.el
@@ -84,7 +84,8 @@
   "Advice for `corfu--insert'."
   (when (>= corfu--index 0)
     (add-to-history 'corfu-history
-                    (nth corfu--index corfu--candidates)
+                    (substring-no-properties
+                     (nth corfu--index corfu--candidates))
                     corfu-history-length)
     (setq corfu-history--hash nil)))
 



reply via email to

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