From 3274aed4ed142b6cb485bff3a967512eb00f5bd7 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 25 May 2007 16:54:06 +0000 Subject: [PATCH] in get_key_buffer(), fix inaccurate comments git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4111 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ src/winio.c | 11 ++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6b80f40..464f22f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ CVS code - +- winio.c: + get_key_buffer() + - Fix inaccurate comments. (DLR) GNU nano 2.0.6 - 2007.04.26 - text.c: diff --git a/src/winio.c b/src/winio.c index 5c0251c4..b3082b84 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)); -- 2.39.5