tweaks: normalize the indentation of the shuffled code

And remove some superfluous braces.
master
David Lawrence Ramsey 2018-08-25 17:53:17 -05:00 committed by Benno Schulenberg
parent b32deee382
commit 13a4f3130d
1 changed files with 156 additions and 161 deletions

View File

@ -2377,12 +2377,10 @@ void do_justify(bool full_justify)
* to the justify buffer, splice a copy of the original
* paragraph(s) into the file in the same place, and set
* first_par_line to the first line of the copy. */
{
backup_lines(openfile->current, full_justify ?
openfile->filebot->lineno - openfile->current->lineno +
((openfile->filebot->data[0] != '\0') ? 1 : 0) : par_len);
first_par_line = openfile->current;
}
/* Search for a paragraph(s) and justify them. If we're justifying the
* whole file, loop until we've found every paragraph. */
@ -2400,8 +2398,7 @@ void do_justify(bool full_justify)
* find the next line of the paragraph(s) to be justified.
* If the search failed, it means that there are no paragraph(s) to
* justify, so break out of the loop. */
}
while (full_justify && find_paragraph(&quote_len, &par_len));
} while (full_justify && find_paragraph(&quote_len, &par_len));
/* We are now done justifying the paragraph(s), so clean
* up. totsize has been maintained above.
@ -2447,7 +2444,6 @@ void do_justify(bool full_justify)
) {
/* Splice the preserved
* unjustified text back into the file, */
{
filestruct *trash = NULL, *dummy = NULL;
/* Throw away the justified paragraph, and replace it with
@ -2473,7 +2469,6 @@ void do_justify(bool full_justify)
titlebar(NULL);
refresh_needed = TRUE;
}
} else {
/* Put the keystroke back into the queue. */
unget_kbinput(kbinput, meta_key);