commit a5b1ca2808619844f5739989a3356db7b846f5ee
parent 5c7d88dc16361f251ff7d6fe2d4b315fe25215ca
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 28 May 2006 17:09:49 +0000
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3589 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -1441,9 +1441,6 @@ int *get_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
{
int *kbinput, *retval;
-#ifdef ENABLE_UTF8
- long uni;
-#endif
/* Read in the first keystroke. */
while ((kbinput = get_input(win, 1)) == NULL);
@@ -1452,7 +1449,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
if (using_utf8()) {
/* Check whether the first keystroke is a valid hexadecimal
* digit. */
- uni = get_unicode_kbinput(*kbinput);
+ long uni = get_unicode_kbinput(*kbinput);
/* If the first keystroke isn't a valid hexadecimal digit, put
* back the first keystroke. */
@@ -1492,7 +1489,8 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
free(uni_mb);
}
} else
-#endif
+#endif /* ENABLE_UTF8 */
+
/* Put back the first keystroke. */
unget_input(kbinput, 1);