From: Andreas Schwab Date: Thu, 29 Oct 2020 09:15:40 +0000 (+0100) Subject: Don't spill ansi-color across parts in articles X-Git-Tag: emacs-28.0.90~5358 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8cd0ce9b857f9d258e447cba13ca32ef5c1641fe;p=emacs.git Don't spill ansi-color across parts in articles * lisp/gnus/gnus-art.el (article-treat-ansi-sequences): Reset ansi-color-context-region. (Bug#44299) --- diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 2e9d85e39d8..f9a6dd64427 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -2170,7 +2170,8 @@ MAP is an alist where the elements are on the form (\"from\" \"to\")." (save-excursion (when (article-goto-body) (let ((inhibit-read-only t)) - (ansi-color-apply-on-region (point) (point-max)))))) + (ansi-color-apply-on-region (point) (point-max))))) + (setq ansi-color-context-region nil)) (defun gnus-article-treat-unfold-headers () "Unfold folded message headers.