cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3589 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-05-28 17:09:49 +00:00
parent 5c7d88dc16
commit a5b1ca2808
1 changed files with 3 additions and 5 deletions

View File

@ -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 *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
{ {
int *kbinput, *retval; int *kbinput, *retval;
#ifdef ENABLE_UTF8
long uni;
#endif
/* Read in the first keystroke. */ /* Read in the first keystroke. */
while ((kbinput = get_input(win, 1)) == NULL); while ((kbinput = get_input(win, 1)) == NULL);
@ -1452,7 +1449,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
if (using_utf8()) { if (using_utf8()) {
/* Check whether the first keystroke is a valid hexadecimal /* Check whether the first keystroke is a valid hexadecimal
* digit. */ * digit. */
uni = get_unicode_kbinput(*kbinput); long uni = get_unicode_kbinput(*kbinput);
/* If the first keystroke isn't a valid hexadecimal digit, put /* If the first keystroke isn't a valid hexadecimal digit, put
* back the first keystroke. */ * back the first keystroke. */
@ -1492,7 +1489,8 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
free(uni_mb); free(uni_mb);
} }
} else } else
#endif #endif /* ENABLE_UTF8 */
/* Put back the first keystroke. */ /* Put back the first keystroke. */
unget_input(kbinput, 1); unget_input(kbinput, 1);