From 5b953769fe1f5ad2a1984b298d838bc5b677a332 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Thu, 22 Sep 2022 08:37:37 -0400 Subject: [PATCH] Obey $DefaultColor in a SATISFY-type reminder. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug found by Gunther Reißig. --- src/calendar.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/calendar.c b/src/calendar.c index 21623208..69ea843c 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -1852,6 +1852,19 @@ static int DoCalRem(ParsePtr p, int col) DBufFree(&buf); } trig.typ = tok.val; + if (trig.typ == MSG_TYPE || + trig.typ == CAL_TYPE || + trig.typ == MSF_TYPE) { + is_color = ( + DefaultColorR != -1 + && DefaultColorG != -1 + && DefaultColorB != -1); + if (is_color) { + col_r = DefaultColorR; + col_g = DefaultColorG; + col_b = DefaultColorB; + } + } jul = LastTriggerDate; if (!LastTrigValid) { FreeTrig(&trig);