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

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

[nongnu] elpa/flx a13d654096 045/182: disable caching for files/dirs for


From: ELPA Syncer
Subject: [nongnu] elpa/flx a13d654096 045/182: disable caching for files/dirs for now
Date: Tue, 13 Dec 2022 03:59:24 -0500 (EST)

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

    disable caching for files/dirs for now
    
    - It's too hard to get it right.
---
 flx-ido.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/flx-ido.el b/flx-ido.el
index 4815a46c77..7d41aec95e 100644
--- a/flx-ido.el
+++ b/flx-ido.el
@@ -13,7 +13,7 @@
 ;; Version: 0.1
 ;; Last-Updated:
 ;;           By:
-;;     Update #: 39
+;;     Update #: 44
 ;; URL:
 ;; Keywords:
 ;; Compatibility:
@@ -148,7 +148,9 @@ item, in which case, the ending items are deleted."
   (concat ido-current-directory query))
 
 (defun flx-ido-cache (query items)
-  (puthash (flx-ido-key-for-query query) items flx-ido-narrowed-matches-hash))
+  (if (memq ido-cur-item '(file dir))
+      items
+    (puthash (flx-ido-key-for-query query) items 
flx-ido-narrowed-matches-hash)))
 
 (defun flx-ido-match (query items)
   "Better sorting for flx ido matching."



reply via email to

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