* lisp/minibuffer.el: Fix recent change of scrolling truncated completions

(completion--lazy-insert-strings-on-scroll): Don't move to the last
completion candidate since this is what happens when scrolling without
truncated completions buffer (bug#79506).
This commit is contained in:
Juri Linkov 2025-10-15 20:14:43 +03:00
parent c4490084fc
commit eb9a93b221

View file

@ -2346,10 +2346,7 @@ Runs of equal candidate strings are eliminated. GROUP-FUN is a
(when track-eob
(with-selected-window window
(goto-char (point-max))
(previous-completion 1)
(recenter -1)
(when cursor-face-highlight-mode
(redisplay--update-cursor-face-highlight window))))))
(recenter -1)))))
(remove-hook 'window-scroll-functions
'completion--lazy-insert-strings-on-scroll t))