- Corrected some cases where rc.color was not obeyed.
This commit is contained in:
Paul Beckingham 2011-05-21 11:29:34 -04:00
parent df652d2ec7
commit 409fa216b8
3 changed files with 41 additions and 19 deletions

View file

@ -257,7 +257,8 @@ static void colorizeRecurring (Task& task, const std::string& rule, Color& c)
void autoColorize (Task& task, Color& c)
{
// The special tag 'nocolor' overrides all auto and specific colorization.
if (task.hasTag ("nocolor"))
if (!context.color () ||
task.hasTag ("nocolor"))
{
c = Color ();
return;