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