summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorStephen Berman <stephen.berman@gmx.net>2023-09-16 14:00:24 +0200
committerStephen Berman <stephen.berman@gmx.net>2023-09-16 14:00:24 +0200
commit33ff4fed03d8cd869d35edd94f92b3fbb0a7c3aa (patch)
tree4fa8d19c331fac8e70e9a8b44077ca418c7a7b5d /lisp/simple.el
parent755ae813a6adf203d4a602a3e7fc0b9ed547be8c (diff)
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.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index abd587245fe..a128ff41051 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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.