Bug #470 - 'task rc.color.alternate:none list' shows incorrect colors

- Fixed bug #470, which caused task to not support the color 'none'.
  Simultaneous vitapi bug fix.
This commit is contained in:
Paul Beckingham 2010-08-17 23:17:44 -04:00
parent 612c613764
commit d460e604ff
2 changed files with 12 additions and 8 deletions

View file

@ -55,6 +55,7 @@
used, with few tasks. used, with few tasks.
+ Fixed bug #466, which gave the wrong error message when a custom report + Fixed bug #466, which gave the wrong error message when a custom report
was missing a direction indicator for the sort order. was missing a direction indicator for the sort order.
+ Fixed bug #470, which caused task to not support the color 'none'.
+ Fixed problem with command line configuration overrides that had no + Fixed problem with command line configuration overrides that had no
values. values.
+ Fixed problem with the 'undo' command not observing the rc.color or the + Fixed problem with the 'undo' command not observing the rc.color or the

View file

@ -127,15 +127,18 @@ Color::Color (const std::string& spec)
// X where X is one of black, red, blue ... // X where X is one of black, red, blue ...
else if ((index = find (word)) != -1) else if ((index = find (word)) != -1)
{ {
if (bg) if (index)
{ {
bg_value |= _COLOR_HASBG; if (bg)
bg_value |= index << 8; {
} bg_value |= _COLOR_HASBG;
else bg_value |= index << 8;
{ }
fg_value |= _COLOR_HASFG; else
fg_value |= index; {
fg_value |= _COLOR_HASFG;
fg_value |= index;
}
} }
} }