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

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

[nongnu] elpa/flx cd557fcb00 051/182: fix C-SPC


From: ELPA Syncer
Subject: [nongnu] elpa/flx cd557fcb00 051/182: fix C-SPC
Date: Tue, 13 Dec 2022 03:59:27 -0500 (EST)

branch: elpa/flx
commit cd557fcb00adea8ee320baa26b28ee9c0e8b639f
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>

    fix C-SPC
    
    fixes #17
---
 flx-ido.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/flx-ido.el b/flx-ido.el
index f6c428c85e..89d17a1519 100644
--- a/flx-ido.el
+++ b/flx-ido.el
@@ -13,7 +13,7 @@
 ;; Version: 0.2
 ;; Last-Updated:
 ;;           By:
-;;     Update #: 55
+;;     Update #: 57
 ;; URL:
 ;; Keywords:
 ;; Compatibility:
@@ -141,7 +141,9 @@ item, in which case, the ending items are deleted."
          (if clear
              (nthcdr decorate-count things)
            (mapcar 'car (nthcdr decorate-count things)))))
-    (mapcar 'car things)))
+    (if clear
+        things
+      (mapcar 'car things))))
 
 (defun flx-ido-match-internal (query items)
   (let* ((matches (loop for item in items
@@ -191,6 +193,11 @@ Remove flx properties after."
     (clrhash flx-ido-narrowed-matches-hash))
   ad-do-it)
 
+(defadvice ido-restrict-to-matches (after flx-ido-reset-hash activate)
+  "Clear flx narrowed hash."
+  (when flx-ido-mode
+    (clrhash flx-ido-narrowed-matches-hash)))
+
 (defadvice ido-set-matches-1 (around flx-ido-set-matches-1 activate)
   "Choose between the regular ido-set-matches-1 and my-ido-fuzzy-match"
   (if flx-ido-mode



reply via email to

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