in do_alt_speller(), call terminal_init() unconditionally after running

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
This commit is contained in:
David Lawrence Ramsey 2004-10-16 04:56:34 +00:00
parent 9cf7b28248
commit 439fbe3e93
2 changed files with 7 additions and 1 deletions

View File

@ -130,6 +130,10 @@ CVS code -
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

View File

@ -1782,6 +1782,9 @@ const char *do_alt_speller(char *tempfile_name)
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);
@ -1793,7 +1796,6 @@ const char *do_alt_speller(char *tempfile_name)
#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