From 8b203d6f22c39d9b9aef1568a19fe6cb77969475 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 11 Nov 2005 03:17:44 +0000 Subject: [PATCH] fix yet more do_justify() breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3158 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/text.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/text.c b/src/text.c index 97d8b5b6..af22303e 100644 --- a/src/text.c +++ b/src/text.c @@ -1183,16 +1183,14 @@ void do_justify(bool full_justify) * since we'll do that after we justify. * * If the search failed, we do one of two things. If we're - * justifying the whole file, we've found at least one - * paragraph, and the search didn't leave us on the last line of - * the file, it means that we should justify all the way to the + * justifying the whole file, and we've found at least one + * paragraph, it means that we should justify all the way to the * last line of the file, so set the last line of the text to be * justified to the last line of the file and break out of the * loop. Otherwise, it means that there are no paragraph(s) to * justify, so refresh the screen and get out. */ if (!find_paragraph("e_len, &par_len)) { - if (full_justify && first_par_line != NULL && - first_par_line != openfile->filebot) { + if (full_justify && first_par_line != NULL) { last_par_line = openfile->filebot; break; } else {