Make Remind adjust calendar to fit terminal.

This commit is contained in:
Dianne Skoll
2020-01-18 15:11:28 -05:00
parent 828a0d6589
commit a9430fea5f
4 changed files with 41 additions and 8 deletions

View File

@@ -430,7 +430,10 @@ void InitRemind(int argc, char const *argv[])
case 'W':
if (*arg != ',') {
PARSENUM(CalWidth, arg);
if (CalWidth < 71) CalWidth = 71;
if (CalWidth != 0 && CalWidth < 71) CalWidth = 71;
if (CalWidth == 0) {
CalWidth = -1;
}
}
if (*arg == ',') {
arg++;