min_breaks has to be no larger than the page width (or length), otherwise
the rendering algorithm fails, but the automatic update for TTYs didn't
take that into account.
enum { MIN_WIDTH = 6, MIN_LENGTH = 6 };
if (a->auto_width)
- a->width = settings_get_viewwidth ();
+ {
+ a->width = settings_get_viewwidth ();
+ a->min_break[H] = a->width / 2;
+ }
if (a->auto_length)
- a->length = settings_get_viewlength () - vertical_margins (a);
+ {
+ a->length = settings_get_viewlength () - vertical_margins (a);
+ a->min_break[V] = a->length / 2;
+ }
if (a->width < MIN_WIDTH || a->length < MIN_LENGTH)
{