tweaks: don't bother zeroing the x position when doing a full justify

The x position of the cursor is irrelevant when doing justifications.
This commit is contained in:
Benno Schulenberg 2018-11-25 15:23:24 +01:00
parent 500c41b83b
commit 2500debbd2
1 changed files with 2 additions and 3 deletions

View File

@ -2226,10 +2226,9 @@ void do_justify(bool full_justify)
/* When justifying the entire buffer, start at the top. Otherwise, when
* in a paragraph but not at its beginning, move back to its first line. */
if (full_justify) {
if (full_justify)
openfile->current = openfile->fileage;
openfile->current_x = 0;
} else if (inpar(openfile->current) && !begpar(openfile->current, 0))
else if (inpar(openfile->current) && !begpar(openfile->current, 0))
do_para_begin(&openfile->current);
/* Find the first line of the paragraph(s) to be justified.