- By misplacing a } I broke the info command for tasks without undo
  history, which subsequently broke 28 unit tests.
This commit is contained in:
Paul Beckingham 2011-01-22 23:20:26 -05:00
parent 43e68f73d3
commit 2f4e0d9e17

View file

@ -749,7 +749,6 @@ int handleInfo (std::string& outs)
if (total_time < 0) if (total_time < 0)
total_time += Date ().toEpoch (); total_time += Date ().toEpoch ();
// print total active time // print total active time
if (total_time > 0) if (total_time > 0)
{ {
@ -760,6 +759,7 @@ int handleInfo (std::string& outs)
if (context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) if (context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor"))
journal.setCellColor (row, 1, Color ("bold")); journal.setCellColor (row, 1, Color ("bold"));
} }
}
out << optionalBlankLine () out << optionalBlankLine ()
<< table.render () << table.render ()
@ -769,7 +769,6 @@ int handleInfo (std::string& outs)
out << journal.render () out << journal.render ()
<< "\n"; << "\n";
} }
}
if (! tasks.size ()) if (! tasks.size ())
{ {