commit ad83ed22d9cd07660d2cb34660d1b535ef21c8f1 parent 3ddf6ff955a45ed3df2cd3cd418e2488ab60f324 Author: Benno Schulenberg <bensberg@justemail.net> Date: Tue, 6 Sep 2016 12:05:22 +0200 input: handle the "resize key" in a better way And correct a comment: the key /does/ occur also in the tiny version. Diffstat:
M | src/winio.c | | | 10 | ++-------- |
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git 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