commit 41c561c5cf4584b9852324e7d64c630e6d596d39
parent c0abcc6018ffa856f6dc22ad2e40be88ac683cff
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 10 Dec 2018 17:36:03 +0100
tweaks: schedule a call of edit_refresh() instead calling it directly
The direct call was a leftover of the old unjustify mechanism.
Also, move two statements to the end of the do_justify() routine,
since that is their place in comparable routines.
Suggested-by: David Lawrence Ramsey <pooka109@gmail.com>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -2306,9 +2306,6 @@ void do_justify(bool full_justify)
cutbuffer = was_cutbuffer;
cutbottom = was_cutbottom;
- set_modified();
- edit_refresh();
-
/* Show what we justified on the status bar. */
if (full_justify)
statusbar(_("Justified file"));
@@ -2317,6 +2314,9 @@ void do_justify(bool full_justify)
/* Set the desired screen column (always zero, except at EOF). */
openfile->placewewant = xplustabs();
+
+ set_modified();
+ refresh_needed = TRUE;
}
/* Justify the current paragraph. */