nano

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

commit 074cf4040904e42e76717163b52bae422af104fa
parent 6c09504040bfd35af857ff5567049d82b6adafd9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 22 Dec 2019 19:18:28 +0100

tweaks: remove a superfluous check

When break_line() is called with its last parameter set to TRUE
(meaning that it will break also at a newline) it will return a
value that is bigger than 1.  So it is pointless to ensure that
it is at least 1.

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

diff --git a/src/help.c b/src/help.c @@ -596,10 +596,8 @@ size_t help_line_len(const char *ptr) /* If the entire line will just fit the screen, don't wrap it. */ if (wideness(ptr, length) <= wrapping_point + 1) return length; - else if (wrap_location > 0) - return wrap_location; else - return 1; + return wrap_location; } #endif /* ENABLE_HELP */