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