nano

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

commit 9a227de3e79544eab30d56ce9b03a7eadf64aecf
parent 3f57200e10b2b3cc8ef8164ed11d52c7a65dda79
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu,  9 Jan 2020 14:47:48 +0100

tweaks: recompute the wrapping point just once

Instead of for every row after the intro.

Diffstat:
Msrc/help.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/help.c b/src/help.c @@ -54,7 +54,7 @@ void wrap_help_text_into_buffer(void) int length, shim; char *oneline; - if (ptr >= end_of_intro) + if (ptr == end_of_intro) wrapping_point = (COLS < 24) ? 24 : COLS; if (ptr > end_of_intro && *(ptr - 1) != '\n') {