From ad83ed22d9cd07660d2cb34660d1b535ef21c8f1 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 6 Sep 2016 12:05:22 +0200
Subject: [PATCH] input: handle the "resize key" in a better way

And correct a comment: the key /does/ occur also in the tiny version.
---
 src/winio.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/winio.c b/src/winio.c
index 82dac676..ab32c930 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -308,11 +308,7 @@ int get_kbinput(WINDOW *win)
     int kbinput = ERR;
 
     /* Extract one keystroke from the input stream. */
-#ifdef KEY_RESIZE
-    while (kbinput == ERR || kbinput == KEY_RESIZE)
-#else
     while (kbinput == ERR)
-#endif
 	kbinput = parse_kbinput(win);
 
 #ifdef DEBUG
@@ -681,10 +677,8 @@ int parse_kbinput(WINDOW *win)
 	case KEY_ALT_R:
 	    return ERR;
 #endif
-#if !defined(NANO_TINY) && defined(KEY_RESIZE)
-	/* Since we don't change the default SIGWINCH handler when
-	 * NANO_TINY is defined, KEY_RESIZE is never generated.
-	 * Also, Slang and SunOS 5.7-5.9 don't support KEY_RESIZE. */
+#ifdef KEY_RESIZE
+	/* Slang and SunOS 5.7-5.9 don't support KEY_RESIZE. */
 	case KEY_RESIZE:
 	    return ERR;
 #endif
-- 
GitLab