branch: elpa/flx commit a13d654096deeab67c3b5729698b83199f2bafa4 Author: Le Wang <le.w...@agworld.com.au> Commit: Le Wang <le.w...@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."