summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-03 23:03:38 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-03 23:03:38 +0200
commita1436318b6c6e911e099775ef3445b6bbbc36236 (patch)
tree17baf07a8905d70d6dc8128b72f0e9be9b0b8f1d
parentb7975dac8ec8376ff807d610ed63ece84cd3010c (diff)
downloadnncmpp-a1436318b6c6e911e099775ef3445b6bbbc36236.tar.gz
nncmpp-a1436318b6c6e911e099775ef3445b6bbbc36236.tar.xz
nncmpp-a1436318b6c6e911e099775ef3445b6bbbc36236.zip
Improve SIGWINCH handling
-rw-r--r--nncmpp.c3
1 files changed, 1 insertions, 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;
}
}