diff options
| author | Noam Postavsky <npostavs@gmail.com> | 2017-06-18 15:29:55 -0400 |
|---|---|---|
| committer | Noam Postavsky <npostavs@gmail.com> | 2017-07-03 10:09:41 -0400 |
| commit | 37cdfec7c73205668498da9b27387f5f3ccfebee (patch) | |
| tree | 10b8ed931c447aaae27b66913ae5d830764bedd9 /lisp | |
| parent | 4ebdcc46ab345849332332d580bd1e3c2c9adb1e (diff) | |
| download | emacs-37cdfec7c73205668498da9b27387f5f3ccfebee.tar.gz | |
Reset ansi escape context before printing eshell prompt (Bug#27407)
* lisp/eshell/em-prompt.el (eshell-emit-prompt): Reset
`ansi-color-context-region'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/eshell/em-prompt.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index 53a83e6a67b..8c81b43b1fa 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el @@ -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)) |
