Make '-wn' initialize FormWidth as well.

This commit is contained in:
Dianne Skoll
2022-09-24 10:29:23 -04:00
parent ccf639efe6
commit ac91556fc2

View File

@@ -538,6 +538,9 @@ void InitRemind(int argc, char const *argv[])
if (CalWidth == 0) {
CalWidth = -1;
}
FormWidth = CalWidth - 8;
if (FormWidth < 20) FormWidth = 20;
if (FormWidth > 500) FormWidth = 500;
}
}
if (*arg == ',') {