From f812e4f7d904a5602782b42f3fd8972ddb1ee4a6 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 7 Dec 2004 17:35:14 +0000 Subject: [PATCH] rearrange a few variables git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2171 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/winio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/winio.c b/src/winio.c index d9cabd49..c2509032 100644 --- a/src/winio.c +++ b/src/winio.c @@ -130,7 +130,6 @@ void reset_kbinput(void) void get_buffer(WINDOW *win) { int input; - size_t i; /* If the keystroke buffer isn't empty, get out. */ if (key_buffer != NULL) @@ -188,6 +187,7 @@ void get_buffer(WINDOW *win) #ifdef NANO_WIDE if (!ISSET(NO_UTF8)) { + size_t i; buffer *clean_key_buffer = NULL; size_t clean_key_buffer_len = 0; @@ -252,7 +252,6 @@ int *buffer_to_keys(buffer *input, size_t input_len) * keystroke buffer. */ void unget_input(buffer *input, size_t input_len) { - size_t i; buffer *clean_input = NULL; size_t clean_input_len = 0; @@ -263,6 +262,8 @@ void unget_input(buffer *input, size_t input_len) #ifdef NANO_WIDE if (!ISSET(NO_UTF8)) { + size_t i; + /* Change all invalid wide character values to -1. */ for (i = 0; i < input_len; i++) { char key[MB_LEN_MAX]; -- 2.39.5