nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 14aa37c692e5ec9dfd4ea2dabe500e2182429274
parent a78b4354bbcf68b6f4701af0096dbf89a90d7e28
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 25 May 2007 16:54:06 +0000

in get_key_buffer(), fix inaccurate comments


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4111 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 1+
Msrc/winio.c | 11++++-------
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git 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 @@ -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));