From 68388182b99d7e12ec649826cf0a8d167be57a88 Mon Sep 17 00:00:00 2001 From: plugd Date: Wed, 2 Feb 2022 22:38:17 +0100 Subject: [PATCH] Prevent xterm-color ansi state from persisting across pages. --- elpher.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1