From: plugd Date: Wed, 2 Feb 2022 21:38:17 +0000 (+0100) Subject: Prevent xterm-color ansi state from persisting across pages. X-Git-Tag: v3.3.2~1 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=68388182b99d7e12ec649826cf0a8d167be57a88;p=elpher.git Prevent xterm-color ansi state from persisting across pages. --- diff --git a/elpher.el b/elpher.el index a869b6a..eb888b6 100644 --- a/elpher.el +++ b/elpher.el @@ -628,7 +628,9 @@ previously-visited pages,unless NO-HISTORY is non-nil." ;; avoid resetting buffer-local variables (elpher-mode)) (let ((inhibit-read-only t) - (ansi-color-context nil)) ;; clean ansi interpreter state + (ansi-color-context nil)) ;; clean ansi interpreter state (also next 2 lines) + (setq-local xterm-color--current-fg nil) + (setq-local xterm-color--current-bg nil) (setq-local network-security-level (default-value 'network-security-level)) (erase-buffer)