From 2500debbd249e651e5a94ceeb46080cdb56f4ba2 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 25 Nov 2018 15:23:24 +0100 Subject: [PATCH] tweaks: don't bother zeroing the x position when doing a full justify The x position of the cursor is irrelevant when doing justifications. --- src/text.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/text.c b/src/text.c index e7f166e6..d6434a1a 100644 --- a/src/text.c +++ b/src/text.c @@ -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.