From ec4883b6a98e3353a75570ff7e2c0eb9122d6e61 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 21 Apr 2019 11:23:52 +0200 Subject: [PATCH] tweaks: remove an unneeded condition The 'prepend_wrap' flag gets set to TRUE only when there is a next line, and it can remain TRUE only when the cursor stays on the current line. --- src/text.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index 9f07012f..09a33c62 100644 --- a/src/text.c +++ b/src/text.c @@ -1466,8 +1466,7 @@ bool do_wrap(void) /* We prepend the wrapped text to the next line, if the prepend_wrap * flag is set, there is a next line, and prepending would not make * the line too long. */ - if (prepend_wrap && line != openfile->filebot && - rest_length + strlen(line->next->data) <= wrap_at) { + if (prepend_wrap && rest_length + strlen(line->next->data) <= wrap_at) { const char *tail = remainder + move_mbleft(remainder, rest_length); /* Go to the end of the line. */