diff --git a/ChangeLog b/ChangeLog index 9164cb74d80f26449436a2d4a0e82fcd2ff46b0d..cbb472871a80ea338df3c5e2cc83e8346305a65b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * configure.ac, nano.c (main): Replace the current hackish check for a UTF-8 locale with a proper call to nl_langinfo(). + * winio.c (get_key_buffer): Fix inaccurate comments. 2007-05-22 David Lawrence Ramsey <pooka109@gmail.com> diff --git a/src/winio.c b/src/winio.c index ba8eccbe38ba7ce7c32b8985dbf40d781b5310f3..75491d3d435d9e4290b0ad0b76e3c28ec436ad8f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -138,9 +138,8 @@ void get_key_buffer(WINDOW *win) allow_pending_sigwinch(FALSE); #endif - /* Increment the length of the keystroke buffer, save the value of - * the keystroke in key, and set key_code to TRUE if the keystroke - * is an extended keypad value or FALSE if it isn't. */ + /* Increment the length of the keystroke buffer, and save the value + * of the keystroke at the end of it. */ key_buffer_len++; key_buffer = (int *)nmalloc(sizeof(int)); key_buffer[0] = input; @@ -159,10 +158,8 @@ void get_key_buffer(WINDOW *win) if (input == ERR) break; - /* Otherwise, increment the length of the keystroke buffer, save - * the value of the keystroke in key, and set key_code to TRUE - * if the keystroke is an extended keypad value or FALSE if it - * isn't. */ + /* Otherwise, increment the length of the keystroke buffer, and + * save the value of the keystroke at the end of it. */ key_buffer_len++; key_buffer = (int *)nrealloc(key_buffer, key_buffer_len * sizeof(int));