diff --git a/ChangeLog b/ChangeLog index 427ac599c..bc1c0792d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,8 @@ + Added feature #307 that provides vim with syntax highlighting for .taskrc. + Task now support .taskrc command line overrides using rc.name:value and the new rc.name=value to accommodate a frequent mistake. + + The color rules for projects (color.project.foo) now matches on partial + project names, the same way as filters. + Fixed bug that showed a calendar for the year 2037 when 'task calendar due' was run, and there are no tasks with due dates. + Fixed bug #316 which caused the timesheet report to display an oddly sorted diff --git a/src/rules.cpp b/src/rules.cpp index c9897ce77..a000e00d7 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -109,8 +109,9 @@ void autoColorize (Task& task, Color& c) { if (it->first.substr (0, 14) == "color.project.") { - std::string value = it->first.substr (14); - if (task.get ("project") == value) + std::string value = lowerCase (it->first.substr (14)); + std::string project = lowerCase (task.get ("project")); + if (project.find (value) == 0) c.blend (it->second); } }