mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
Reset ansi escape context before printing eshell prompt (Bug#27407)
* lisp/eshell/em-prompt.el (eshell-emit-prompt): Reset `ansi-color-context-region'.
This commit is contained in:
parent
4ebdcc46ab
commit
37cdfec7c7
1 changed files with 2 additions and 0 deletions
|
|
@ -117,6 +117,8 @@ arriving, or after."
|
|||
|
||||
(defun eshell-emit-prompt ()
|
||||
"Emit a prompt if eshell is being used interactively."
|
||||
(when (boundp 'ansi-color-context-region)
|
||||
(setq ansi-color-context-region nil))
|
||||
(run-hooks 'eshell-before-prompt-hook)
|
||||
(if (not eshell-prompt-function)
|
||||
(set-marker eshell-last-output-end (point))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue