mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1428
- Minor tweaks.
This commit is contained in:
parent
2c7013cc1c
commit
ca14657f0c
2 changed files with 5 additions and 4 deletions
|
@ -232,9 +232,10 @@ static void colorizeUDA (Task& task, const std::string& rule, const Color& base,
|
||||||
if (task.has (rule.substr (10)))
|
if (task.has (rule.substr (10)))
|
||||||
c.blend (base);
|
c.blend (base);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
const std::string uda = rule.substr (10, pos-10);
|
{
|
||||||
const std::string val = rule.substr (pos+1);
|
const std::string uda = rule.substr (10, pos - 10);
|
||||||
|
const std::string val = rule.substr (pos + 1);
|
||||||
if (task.get (uda) == val)
|
if (task.get (uda) == val)
|
||||||
c.blend (base);
|
c.blend (base);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Test::More tests => 2;
|
use Test::More tests => 3;
|
||||||
|
|
||||||
# Ensure environment has no influence.
|
# Ensure environment has no influence.
|
||||||
delete $ENV{'TASKDATA'};
|
delete $ENV{'TASKDATA'};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue