diff options
author | Stephen Berman <stephen.berman@gmx.net> | 2023-09-16 14:00:24 +0200 |
---|---|---|
committer | Stephen Berman <stephen.berman@gmx.net> | 2023-09-16 14:00:24 +0200 |
commit | 33ff4fed03d8cd869d35edd94f92b3fbb0a7c3aa (patch) | |
tree | 4fa8d19c331fac8e70e9a8b44077ca418c7a7b5d /lisp/simple.el | |
parent | 755ae813a6adf203d4a602a3e7fc0b9ed547be8c (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.el | 6 |
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. |