From 07a39e8e18665fa946fb41ad08167b77fb4d6d8e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 29 Jun 2016 15:55:38 +0200 Subject: [PATCH] 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 --- src/nano.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nano.c b/src/nano.c index 3b71e205..367d3f38 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1298,10 +1298,9 @@ RETSIGTYPE do_continue(int signal) #endif #ifndef NANO_TINY - /* Perhaps the user resized the window while we slept. Handle it, - * and restore the terminal to its previous state and update the - * screen in the process. */ - handle_sigwinch(0); + /* Perhaps the user resized the window while we slept. So act as if, + * and restore the terminal to its previous state in the process. */ + regenerate_screen(); #else /* Restore the terminal to its previous state. */ terminal_init();