From 32eddd514f8ccc35eeaa128a441f6a47708e6a04 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Tue, 24 Jan 2017 22:03:48 +0100 Subject: [PATCH] cal: terminal-colors.d independent highlight matching pattern --- widgets/calendar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/calendar.lua b/widgets/calendar.lua index 7988ba2..76284f5 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -69,7 +69,7 @@ function calendar.show(t_out, inc_offset, scr) async(f, function(ws) fg, bg = calendar.notification_preset.fg, calendar.notification_preset.bg - ws = ws:gsub("%c%[7m%d+%c%[27m", markup.bold(markup.color(bg, fg, today))) + ws = ws:gsub("%c%[%d+[m]?%d+%c%[%d+[m]?", markup.bold(markup.color(bg, fg, today))) calendar.notification = naughty.notify({ preset = calendar.notification_preset, text = ws:gsub("\n*$", ""), -- 2.39.5