From: David Lawrence Ramsey Date: Sun, 28 May 2006 17:09:49 +0000 (+0000) Subject: cosmetic fixes X-Git-Tag: v1.3.12~91 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a5b1ca2808619844f5739989a3356db7b846f5ee;p=nano.git cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3589 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/winio.c b/src/winio.c index d659ac49..c5de60e1 100644 --- 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);