the alternate spell checker, so that the terminal state is properly
restored in all cases
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1994
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
the USE_REGEXP flag off during spell checking in order to
avoid a potential segfault. (DLR)
+ do_alt_speller()
+ - Call terminal_init() unconditionally after running the
+ alternate spell checker, so that the terminal state is
+ properly restored in all cases. (DLR)
justify_format()
- For more compatibility with Pico, remove extra space after a
character in punct if that character is the same as the one
refresh();
+ /* Restore the terminal to its previous state. */
+ terminal_init();
+
#ifndef NANO_SMALL
if (old_mark_set) {
do_gotopos(mbb_lineno_cur, mark_beginx, y_cur, 0);
#endif
/* Only reload the temp file if it isn't a marked selection. */
free_filestruct(fileage);
- terminal_init();
global_init(TRUE);
/* Do what load_buffer() would do, except for making a new