diff --git a/src/text.c b/src/text.c index e7d5cee9..039d1161 100644 --- a/src/text.c +++ b/src/text.c @@ -2446,6 +2446,9 @@ const char *do_int_speller(const char *tempfile_name) return _("Could not get size of pipe buffer"); } + /* Leave curses mode so that error messages go to the original screen. */ + endwin(); + /* Block SIGWINCHes while reading misspelled words from the third pipe. */ block_sigwinch(TRUE); @@ -2466,6 +2469,10 @@ const char *do_int_speller(const char *tempfile_name) block_sigwinch(FALSE); + /* Re-enter curses mode. */ + terminal_init(); + doupdate(); + /* Do any replacements case-sensitively, forward, and without regexes. */ SET(CASE_SENSITIVE); UNSET(BACKWARDS_SEARCH);