Make move-end-of-line in minibuffer consistent (bug#65980)

* lisp/simple.el (move-end-of-line): Always move to eol when
invoking `C-e' from within the minibuffer's prompt string.
This commit is contained in:
Stephen Berman 2023-09-16 14:00:24 +02:00
parent 755ae813a6
commit 33ff4fed03

View file

@ -8228,7 +8228,11 @@ rests."
(let ((newpos
(save-excursion
(let ((goal-column 0)
(line-move-visual nil))
(line-move-visual nil)
;; Always move to eol when invoking `C-e' from
;; within the minibuffer's prompt string (see
;; bug#65980).
(inhibit-field-text-motion (minibufferp)))
(and (line-move arg t)
;; With bidi reordering, we may not be at bol,
;; so make sure we are.