mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Color
- Corrected some cases where rc.color was not obeyed.
This commit is contained in:
parent
df652d2ec7
commit
409fa216b8
3 changed files with 41 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue