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>
master
Benno Schulenberg 2018-12-10 17:36:03 +01:00
parent c0abcc6018
commit 41c561c5cf
1 changed files with 3 additions and 3 deletions

View File

@ -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. */