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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user