]> git.eshelyaron.com Git - emacs.git/commitdiff
; Flush cycling cache in 'minibuffer-force-complete-and-exit'
authorEshel Yaron <me@eshelyaron.com>
Sun, 18 Feb 2024 11:09:45 +0000 (12:09 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 18 Feb 2024 11:09:45 +0000 (12:09 +0100)
* lisp/minibuffer.el (minibuffer-force-complete-and-exit): Flush cycling
cache to avoid cycling when we were just cycling but now want to exit.

lisp/minibuffer.el

index e28c0226b2b15a18d92d7f0f789623ca76ba6155..49efb36908f7023e12fe2de8ecd7b75d08999de0 100644 (file)
@@ -2022,6 +2022,7 @@ instead of \\[minibuffer-cycle-completion] followed by \
 \\[exit-minibuffer] when you know you want the first
 completion even before cycling to it."
   (interactive "" minibuffer-mode)
+  (completion--flush-all-sorted-completions)
   (if-let ((beg (minibuffer-prompt-end))
            (end (cdr (minibuffer--completion-boundaries)))
            (all (completion-all-sorted-completions beg end)))