mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
rules: Make colorizeOverdue properly process dateEarlierToday date state
This makes the coloring implementation consistent with the Task::is_overdue() method. Closes #1998.
This commit is contained in:
parent
fbf8fe688e
commit
2adc5994d5
1 changed files with 2 additions and 1 deletions
|
@ -252,9 +252,10 @@ static void colorizeOverdue (Task& task, const Color& base, Color& c, bool merge
|
||||||
if (task.has ("due"))
|
if (task.has ("due"))
|
||||||
{
|
{
|
||||||
auto status = task.getStatus ();
|
auto status = task.getStatus ();
|
||||||
|
auto dateState = task.getDateState ("due");
|
||||||
if (status != Task::completed &&
|
if (status != Task::completed &&
|
||||||
status != Task::deleted &&
|
status != Task::deleted &&
|
||||||
task.getDateState ("due") == Task::dateBeforeToday)
|
(dateState == Task::dateBeforeToday || dateState == Task::dateEarlierToday))
|
||||||
applyColor (base, c, merge);
|
applyColor (base, c, merge);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue