nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 2eaba21a4cc2c99875a57924b4d4a4902136e5d6
parent 9a227de3e79544eab30d56ce9b03a7eadf64aecf
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu,  9 Jan 2020 15:01:31 +0100

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.

Diffstat:
Msrc/help.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/help.c b/src/help.c @@ -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 {