Skip shell prompt on current line in Eshell even if it's protected
When the eshell prompt is protected (e.g., with rear non-sticky, inhibited movements, etc.), 'beginning-of-line' won't move to the actual beginning of the line and therefore won't skip over the prompt. * lisp/eshell/em-prompt.el (eshell-previous-prompt): Use 'forward-line' to go to the beginning of the line, even if it's protected. (Bug#39627)
This commit is contained in:
parent
9f08524748
commit
cd6a9b8f65
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ See `eshell-prompt-regexp'."
|
|||
"Move to end of Nth previous prompt in the buffer.
|
||||
See `eshell-prompt-regexp'."
|
||||
(interactive "p")
|
||||
(beginning-of-line) ; Don't count prompt on current line.
|
||||
(forward-line 0) ; Don't count prompt on current line.
|
||||
(eshell-next-prompt (- n)))
|
||||
|
||||
(defun eshell-skip-prompt ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue