cal: Fix grid alignment for years < 1000
This commit is contained in:
parent
ef9f6f359a
commit
aae808fe5b
2
cal.c
2
cal.c
|
@ -109,7 +109,7 @@ drawcal(size_t year, int month, size_t ncols, size_t nmons, int fday)
|
||||||
cur_month -= 12;
|
cur_month -= 12;
|
||||||
cur_year += 1;
|
cur_year += 1;
|
||||||
}
|
}
|
||||||
printf(" %s %zu ", smon[cur_month], cur_year);
|
printf(" %s %-4zu ", smon[cur_month], cur_year);
|
||||||
printf(" ");
|
printf(" ");
|
||||||
}
|
}
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user