mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - color.alternate ignoring color/forcecolor overrides
- Fixed bug that caused the alternate line coloration to ignore whether color was enabled or not. This (once again) added color codes to the shadow file. This happens repeatedly - I think a unit test for this mistake is needed.
This commit is contained in:
parent
010ef7cd07
commit
80a3196097
1 changed files with 6 additions and 3 deletions
|
@ -530,9 +530,12 @@ int runCustomReport (
|
|||
}
|
||||
|
||||
// If an alternating row color is specified, notify the table.
|
||||
if (context.config.get ("color", true) || context.config.get (std::string ("_forcecolor"), false))
|
||||
{
|
||||
Color alternate (context.config.get ("color.alternate", ""));
|
||||
if (alternate.nontrivial ())
|
||||
table.setTableAlternateColor (alternate);
|
||||
}
|
||||
|
||||
// Limit the number of rows according to the report definition.
|
||||
int maximum = context.config.get (std::string ("report.") + report + ".limit", (int)0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue