From 9f149a7f356cb3b26fa25dec8272b71df05e3c2d Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Fri, 17 Dec 2021 00:55:23 +0000 Subject: [PATCH] use Task::getAnnotations to get annotatoins --- src/rules.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rules.cpp b/src/rules.cpp index 038fe73a4..760858487 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -189,10 +189,9 @@ static void colorizeKeyword (Task& task, const std::string& rule, const Color& b // first match. else { - for (const auto& att : task.data_removeme ()) + for (const auto& att : task.getAnnotations ()) { - if (! att.first.compare (0, 11, "annotation_", 11) && - find (att.second, rule.substr (14), sensitive) != std::string::npos) + if (find (att.second, rule.substr (14), sensitive) != std::string::npos) { applyColor (base, c, merge); return;