mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-03 18:02:54 +03:00
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.
This commit is contained in:
parent
9a227de3e7
commit
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user