From d8974451f092872bb00b53eecb7988cda6b8b9d9 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 4 Jun 2004 22:28:55 +0000 Subject: [PATCH] add an extra break and move an #endif down to fix a potential problem when NANO_SMALL is defined or KEY_RESIZE isn't, and when PDCURSES isn't defined git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1802 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ src/winio.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b844f06..534df683 100644 --- a/ChangeLog +++ b/ChangeLog @@ -308,6 +308,9 @@ CVS code - - Add proper support for the keypad values and escape sequences generated by the NumLock glitch and by certain keys on the numeric keypad. (DLR) + - Add an extra break and move an #endif down to fix a potential + problem when NANO_SMALL is defined or KEY_RESIZE isn't, and + when PDCURSES isn't defined. (DLR) get_escape_seq_kbinput() - Add proper support for the keypad values and escape sequences generated by the NumLock glitch. (DLR) diff --git a/src/winio.c b/src/winio.c index 72cde515..65fdeb73 100644 --- a/src/winio.c +++ b/src/winio.c @@ -231,6 +231,7 @@ int get_translated_kbinput(int kbinput, int *es * NANO_SMALL is defined, KEY_RESIZE is never generated. Also, * Slang and SunOS 5.7-5.9 don't support KEY_RESIZE. */ case KEY_RESIZE: + break; #endif #ifdef PDCURSES case KEY_SHIFT_L: @@ -239,8 +240,8 @@ int get_translated_kbinput(int kbinput, int *es case KEY_CONTROL_R: case KEY_ALT_L: case KEY_ALT_R: -#endif break; +#endif default: switch (escapes) { case 0: -- 2.39.5