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.
master
Benno Schulenberg 2020-01-09 15:01:31 +01:00
parent 9a227de3e7
commit 2eaba21a4c
1 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ void wrap_help_text_into_buffer(void)
{ {
size_t sum = 0; size_t sum = 0;
/* Avoid overtight and overwide paragraphs in the introductory text. */ /* 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; const char *ptr = start_of_body;
make_new_buffer(); make_new_buffer();
@ -55,10 +55,10 @@ void wrap_help_text_into_buffer(void)
char *oneline; char *oneline;
if (ptr == end_of_intro) 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') { 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); oneline = nmalloc(length + 5);
snprintf(oneline, length + 5, "\t\t %s", ptr); snprintf(oneline, length + 5, "\t\t %s", ptr);
} else { } else {