From a1436318b6c6e911e099775ef3445b6bbbc36236 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 3 Jun 2017 23:03:38 +0200
Subject: Improve SIGWINCH handling
---
nncmpp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/nncmpp.c b/nncmpp.c
index 962eb6a..18c87c6 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -2956,11 +2956,10 @@ app_on_signal_pipe_readable (const struct pollfd *fd, void *user_data)
if (g_winch_received)
{
+ g_winch_received = false;
update_curses_terminal_size ();
app_fix_view_range ();
app_invalidate ();
-
- g_winch_received = false;
}
}
--
cgit v1.2.3-70-g09d2