screen: don't simulate a sigwinch but directly reinitialize the screen

This fixes the second part of https://savannah.gnu.org/bugs/?48331.

Reported-by: Mike Frysinger <vapier@gentoo.org>
master
Benno Schulenberg 2016-06-29 15:55:38 +02:00
parent 1d7c177606
commit 07a39e8e18
1 changed files with 3 additions and 4 deletions

View File

@ -1298,10 +1298,9 @@ RETSIGTYPE do_continue(int signal)
#endif #endif
#ifndef NANO_TINY #ifndef NANO_TINY
/* Perhaps the user resized the window while we slept. Handle it, /* Perhaps the user resized the window while we slept. So act as if,
* and restore the terminal to its previous state and update the * and restore the terminal to its previous state in the process. */
* screen in the process. */ regenerate_screen();
handle_sigwinch(0);
#else #else
/* Restore the terminal to its previous state. */ /* Restore the terminal to its previous state. */
terminal_init(); terminal_init();