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;