[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/elpher 68388182b9 2/2: Prevent xterm-color ansi state from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/elpher 68388182b9 2/2: Prevent xterm-color ansi state from persisting across pages. |
Date: |
Wed, 2 Feb 2022 16:57:55 -0500 (EST) |
branch: elpa/elpher
commit 68388182b99d7e12ec649826cf0a8d167be57a88
Author: plugd <plugd@thelambdalab.xyz>
Commit: plugd <plugd@thelambdalab.xyz>
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 a869b6a880..eb888b6535 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)