nano

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

commit 5f5682240a6fac773975b14ede9d9bb805a8a97d
parent 4a70c1393f27b7fa2633a3fc86ac3125c84bd594
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 25 Nov 2018 12:43:29 +0100

tweaks: remove a superfluous check for a special case

The case is handled fine by the rest of the code.  The unnecessary
check wastes some cycles for every call of find_paragraph().

Diffstat:
Msrc/text.c | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2045,11 +2045,6 @@ bool find_paragraph(filestruct **firstline, bool *bot_inpar, return FALSE; } - /* When at the end of the buffer and not in a paragraph, there aren't - * any paragraphs left, so get out. */ - if (line->next == NULL && !inpar(line)) - return FALSE; - /* If the current line isn't in a paragraph, move forward to the * last line of the next paragraph, if any. */ if (!inpar(line)) {