Commit 14aa37c6 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in get_key_buffer(), fix inaccurate comments

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4111 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 7 deletions
+5 -7
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* configure.ac, nano.c (main): Replace the current hackish check * configure.ac, nano.c (main): Replace the current hackish check
for a UTF-8 locale with a proper call to nl_langinfo(). 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> 2007-05-22 David Lawrence Ramsey <pooka109@gmail.com>
......
...@@ -138,9 +138,8 @@ void get_key_buffer(WINDOW *win) ...@@ -138,9 +138,8 @@ void get_key_buffer(WINDOW *win)
allow_pending_sigwinch(FALSE); allow_pending_sigwinch(FALSE);
#endif #endif
/* Increment the length of the keystroke buffer, save the value of /* Increment the length of the keystroke buffer, and save the value
* the keystroke in key, and set key_code to TRUE if the keystroke * of the keystroke at the end of it. */
* is an extended keypad value or FALSE if it isn't. */
key_buffer_len++; key_buffer_len++;
key_buffer = (int *)nmalloc(sizeof(int)); key_buffer = (int *)nmalloc(sizeof(int));
key_buffer[0] = input; key_buffer[0] = input;
...@@ -159,10 +158,8 @@ void get_key_buffer(WINDOW *win) ...@@ -159,10 +158,8 @@ void get_key_buffer(WINDOW *win)
if (input == ERR) if (input == ERR)
break; break;
/* Otherwise, increment the length of the keystroke buffer, save /* Otherwise, increment the length of the keystroke buffer, and
* the value of the keystroke in key, and set key_code to TRUE * save the value of the keystroke at the end of it. */
* if the keystroke is an extended keypad value or FALSE if it
* isn't. */
key_buffer_len++; key_buffer_len++;
key_buffer = (int *)nrealloc(key_buffer, key_buffer_len * key_buffer = (int *)nrealloc(key_buffer, key_buffer_len *
sizeof(int)); sizeof(int));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment