>From efd3fe14378a8f51dcc4946d573c5ae243778084 Mon Sep 17 00:00:00 2001 From: "F. Moukayed" Date: Sun, 17 Mar 2024 17:16:35 +0000 Subject: [PATCH 2/2] Fix wrong color rendering when bg=99 or fg=99 * lisp/erc/erc-goodies.el (erc-controls-propertize): Avoid prepending the bg/fg face if it's defaulted (99). --- lisp/erc/erc-goodies.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/erc/erc-goodies.el b/lisp/erc/erc-goodies.el index 93b888a..52bd177 100644 --- a/lisp/erc/erc-goodies.el +++ b/lisp/erc/erc-goodies.el @@ -1002,10 +1002,10 @@ to a region in the current buffer." (if underlinep '(erc-underline-face) nil) - (if fg + (if (and fg (not (equal fg 'erc-control-default-fg))) (list fg) nil) - (if bg + (if (and bg (not (equal bg 'erc-control-default-bg))) (list bg) nil)) str) -- 2.34.1