ncal: always generate all lines for a month in cal mode
authorSimon Schubert <corecode@dragonflybsd.org>
Mon, 18 May 2009 10:49:34 +0000 (12:49 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Mon, 18 May 2009 10:49:45 +0000 (12:49 +0200)
commitd257a6956f284a69d26da735a9fd3b5d5deca27d
treecb4a81f40734bebd3fa880adfc8759a97b475eea
parent70966a774dadbac373bd30878099feea84c02cac
ncal: always generate all lines for a month in cal mode

If a month did not span 6 lines, but less, the lines up to line #6 would
not be padded with spaces.  In the year view, if a month on a column to
the left exhibited this state, and a month to the right would span 6
lines, the days in the 6th line of the right month would appear warped and
not aligned under the month they belong to.  Fix this by always generating
6 lines.

Reported-by: swildner@
usr.bin/ncal/ncal.c