branch: elpa/flx commit a1fef0710485acbdfe1170d70ad9cb32ae42bcf2 Author: Le Wang <le.w...@agworld.com.au> Commit: Le Wang <le.w...@agworld.com.au>
Fix C-k to kill buffer at head. - fixes #46 --- flx-ido.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flx-ido.el b/flx-ido.el index ee97efd6ea..e5768ce03a 100644 --- a/flx-ido.el +++ b/flx-ido.el @@ -205,6 +205,13 @@ item, in which case, the ending items are deleted." (setq ad-return-value (flx-ido-match ido-text (ad-get-arg 0)))))) ad-do-it)) +(defadvice ido-kill-buffer-at-head (before flx-ido-reset-hash activate) + "Keep up with modification as required." + (when flx-ido-mode + ;; if not at EOB, query text is deleted. + (when (eobp) + (clrhash flx-ido-narrowed-matches-hash)))) + ;;;###autoload (define-minor-mode flx-ido-mode "Toggle flx ido mode"