diff options
| author | Noam Postavsky | 2017-06-18 15:29:55 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-07-03 10:09:41 -0400 |
| commit | 37cdfec7c73205668498da9b27387f5f3ccfebee (patch) | |
| tree | 10b8ed931c447aaae27b66913ae5d830764bedd9 /lisp/eshell | |
| parent | 4ebdcc46ab345849332332d580bd1e3c2c9adb1e (diff) | |
| download | emacs-37cdfec7c73205668498da9b27387f5f3ccfebee.tar.gz emacs-37cdfec7c73205668498da9b27387f5f3ccfebee.zip | |
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/eshell')
| -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." | |||
| 117 | 117 | ||
| 118 | (defun eshell-emit-prompt () | 118 | (defun eshell-emit-prompt () |
| 119 | "Emit a prompt if eshell is being used interactively." | 119 | "Emit a prompt if eshell is being used interactively." |
| 120 | (when (boundp 'ansi-color-context-region) | ||
| 121 | (setq ansi-color-context-region nil)) | ||
| 120 | (run-hooks 'eshell-before-prompt-hook) | 122 | (run-hooks 'eshell-before-prompt-hook) |
| 121 | (if (not eshell-prompt-function) | 123 | (if (not eshell-prompt-function) |
| 122 | (set-marker eshell-last-output-end (point)) | 124 | (set-marker eshell-last-output-end (point)) |