mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdChart: Week number now always displayed for first line
This commit is contained in:
parent
225494d360
commit
9de59fe58e
1 changed files with 2 additions and 3 deletions
|
@ -145,8 +145,7 @@ int renderChart (
|
|||
last_hour);
|
||||
|
||||
// For rendering labels on edge detection.
|
||||
Datetime previous (filter.range.start);
|
||||
--previous;
|
||||
Datetime previous {0};
|
||||
|
||||
// Is the :blank hint being used?
|
||||
bool blank = findHint (cli, ":blank");
|
||||
|
@ -332,7 +331,7 @@ static std::string renderMonth (
|
|||
<< ' ';
|
||||
|
||||
if (showWeek)
|
||||
out << (previous.week () != day.week () ? leftJustify (format ("W{1}", day.week ()), 3) : " ")
|
||||
out << (previous.week () != day.week () ? leftJustify (format ("W{1}", day.week ()), 3) : " ")
|
||||
<< ' ';
|
||||
|
||||
return out.str ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue