mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
Bug #783
+ Fixed bug #783, which fixes completed and deleted tasks still showing as active (thanks to Adam Wolk).
This commit is contained in:
parent
7c910e46be
commit
90f6f537fe
6 changed files with 21 additions and 29 deletions
|
@ -63,7 +63,10 @@ void ColumnStart::measure (Task& task, int& minimum, int& maximum)
|
|||
if (task.has (_attribute))
|
||||
{
|
||||
if (_style == "active")
|
||||
minimum = maximum = context.config.get ("active.indicator").length ();
|
||||
{
|
||||
if (! task.has ("end"))
|
||||
minimum = maximum = context.config.get ("active.indicator").length ();
|
||||
}
|
||||
else
|
||||
ColumnDate::measure (task, minimum, maximum);
|
||||
}
|
||||
|
@ -80,10 +83,11 @@ void ColumnStart::render (
|
|||
{
|
||||
if (_style == "active")
|
||||
{
|
||||
lines.push_back (
|
||||
color.colorize (
|
||||
rightJustify (
|
||||
context.config.get ("active.indicator"), width)));
|
||||
if (! task.has ("end"))
|
||||
lines.push_back (
|
||||
color.colorize (
|
||||
rightJustify (
|
||||
context.config.get ("active.indicator"), width)));
|
||||
}
|
||||
else
|
||||
ColumnDate::render (lines, task, width, color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue