use Task::getAnnotations to get annotatoins

This commit is contained in:
Dustin J. Mitchell
2021-12-17 00:55:23 +00:00
committed by Tomas Babej
parent 70f83b34ef
commit 9f149a7f35

View File

@@ -189,10 +189,9 @@ static void colorizeKeyword (Task& task, const std::string& rule, const Color& b
// first match. // first match.
else else
{ {
for (const auto& att : task.data_removeme ()) for (const auto& att : task.getAnnotations ())
{ {
if (! att.first.compare (0, 11, "annotation_", 11) && if (find (att.second, rule.substr (14), sensitive) != std::string::npos)
find (att.second, rule.substr (14), sensitive) != std::string::npos)
{ {
applyColor (base, c, merge); applyColor (base, c, merge);
return; return;