nano

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

commit 8b203d6f22c39d9b9aef1568a19fe6cb77969475
parent 53f641f9099bce6f54b351a1ba77ad2f54bc4c9d
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 11 Nov 2005 03:17:44 +0000

fix yet more do_justify() breakage


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3158 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

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

diff --git 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(&quote_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 {