branch: externals/corfu
commit 5d0b5e46e30dfe81001befe87c6491929d900e03
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@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