From: Eshel Yaron Date: Sun, 18 Feb 2024 11:09:45 +0000 (+0100) Subject: ; Flush cycling cache in 'minibuffer-force-complete-and-exit' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e5b5452648eca6d6911ca647934a8557f95a340e;p=emacs.git ; Flush cycling cache in 'minibuffer-force-complete-and-exit' * lisp/minibuffer.el (minibuffer-force-complete-and-exit): Flush cycling cache to avoid cycling when we were just cycling but now want to exit. --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index e28c0226b2b..49efb36908f 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -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)))