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>
Этот коммит содержится в:
родитель
c0abcc6018
Коммит
41c561c5cf
@ -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. */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user