1
1

help: increase the minimum help-text width from 24 to 32 columns

Even at 32 columns, the key descriptions are already hopelessly
fragmented.  Any width smaller than that is useless.
Этот коммит содержится в:
Benno Schulenberg 2020-01-09 15:01:31 +01:00
родитель 9a227de3e7
Коммит 2eaba21a4c

Просмотреть файл

@ -44,7 +44,7 @@ void wrap_help_text_into_buffer(void)
{
size_t sum = 0;
/* Avoid overtight and overwide paragraphs in the introductory text. */
size_t wrapping_point = (COLS < 24) ? 24 : (COLS > 74) ? 74 : COLS;
size_t wrapping_point = (COLS < 32) ? 32 : (COLS > 74) ? 74 : COLS;
const char *ptr = start_of_body;
make_new_buffer();
@ -55,10 +55,10 @@ void wrap_help_text_into_buffer(void)
char *oneline;
if (ptr == end_of_intro)
wrapping_point = (COLS < 24) ? 24 : COLS;
wrapping_point = (COLS < 32) ? 32 : COLS;
if (ptr > end_of_intro && *(ptr - 1) != '\n') {
length = break_line(ptr, (COLS < 24) ? 6 : COLS - 18, TRUE);
length = break_line(ptr, (COLS < 32) ? 14 : COLS - 18, TRUE);
oneline = nmalloc(length + 5);
snprintf(oneline, length + 5, "\t\t %s", ptr);
} else {