Commit fd6bc60f authored by Gerd Moellmann's avatar Gerd Moellmann

(next-history-element): Set point to the end of the

prompt if minibuffer-prompt-in-buffer.
parent f56f1421
......@@ -824,7 +824,9 @@ An uppercase letter in REGEXP makes the search case-sensitive."
(let ((print-level nil))
(prin1-to-string elt))
elt))
(goto-char (point-min)))))
(if (boundp 'minibuffer-prompt-in-buffer)
(goto-char (minibuffer-prompt-width))
(goto-char (point-min))))))
(defun previous-history-element (n)
"Inserts the previous element of the minibuffer history into the minibuffer."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment