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

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

[nongnu] elpa/flx a1fef07104 087/182: Fix C-k to kill buffer at head.


From: ELPA Syncer
Subject: [nongnu] elpa/flx a1fef07104 087/182: Fix C-k to kill buffer at head.
Date: Tue, 13 Dec 2022 03:59:32 -0500 (EST)

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



reply via email to

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