]> git.eshelyaron.com Git - emacs.git/commitdiff
Reset ansi escape context before printing eshell prompt (Bug#27407)
authorNoam Postavsky <npostavs@gmail.com>
Sun, 18 Jun 2017 19:29:55 +0000 (15:29 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 3 Jul 2017 14:09:41 +0000 (10:09 -0400)
* lisp/eshell/em-prompt.el (eshell-emit-prompt): Reset
`ansi-color-context-region'.

lisp/eshell/em-prompt.el

index 53a83e6a67b846d6dfa2b609a47dea71820c47fd..8c81b43b1facc3436deab401723b827a82a7f0cf 100644 (file)
@@ -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))