fix yet more do_justify() breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3158 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-11-11 03:17:44 +00:00
parent 53f641f909
commit 8b203d6f22
1 changed files with 3 additions and 5 deletions

View File

@ -1183,16 +1183,14 @@ void do_justify(bool full_justify)
* since we'll do that after we justify. * since we'll do that after we justify.
* *
* If the search failed, we do one of two things. If we're * If the search failed, we do one of two things. If we're
* justifying the whole file, we've found at least one * justifying the whole file, and we've found at least one
* paragraph, and the search didn't leave us on the last line of * paragraph, it means that we should justify all the way to the
* the file, 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 * 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 * justified to the last line of the file and break out of the
* loop. Otherwise, it means that there are no paragraph(s) to * loop. Otherwise, it means that there are no paragraph(s) to
* justify, so refresh the screen and get out. */ * justify, so refresh the screen and get out. */
if (!find_paragraph(&quote_len, &par_len)) { if (!find_paragraph(&quote_len, &par_len)) {
if (full_justify && first_par_line != NULL && if (full_justify && first_par_line != NULL) {
first_par_line != openfile->filebot) {
last_par_line = openfile->filebot; last_par_line = openfile->filebot;
break; break;
} else { } else {