- If the spell-checker printed any error messages onscreen, call
total_refresh() to make sure they're cleared off. (DLR, found
by CHAO Wei-Lun)
+ do_justify()
+ - Save placewewant, and restore it if we unjustify, in order to
+ avoid a potential screen update problem. (DLR)
do_output()
- Properly allow wrapping when we insert a tab, for consistency.
(DLR)
/* We save these global variables to be restored if the user
* unjustifies. Note that we don't need to save totlines. */
- size_t current_x_save = current_x;
+ size_t current_x_save = current_x, pww_save = placewewant;
int current_y_save = current_y;
unsigned long flags_save = flags;
size_t totsize_save = totsize;
/* Restore the justify we just did (ungrateful user!). */
current = current_save;
current_x = current_x_save;
+ placewewant = pww_save;
current_y = current_y_save;
edittop = edittop_save;