From e7034c6087fdc1a92d13e081fa05a2bce4499cdc Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Fri, 15 Sep 2000 03:31:09 +0000 Subject: [PATCH] onekey() - Off by one error fix fix ;-) (Rocco Corsi) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@221 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ po/nano.pot | 2 +- winio.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee697718..9a0ee1b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,8 @@ CVS code - - winio.c: total_refresh() - Added titlebar() call. + onekey() + - Off by one error fix fix ;-) (Rocco Corsi). - search.c: findnextstr() @@ -75,6 +77,7 @@ nano-0.9.17 - 09/04/2000 lack of reversed text on searching with MARK_ISSET. onekey() - Off by one error fix (Rocco Corsi). + update_line() - Added check for binary data >= 1 and <= 26, and use ^+letter to display it. Should fix editing text files with binary diff --git a/po/nano.pot b/po/nano.pot index 2f5125c5..7653173d 100644 --- a/po/nano.pot +++ b/po/nano.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-09-13 10:30-0400\n" +"POT-Creation-Date: 2000-09-14 23:37-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/winio.c b/winio.c index b4d76f89..913915de 100644 --- a/winio.c +++ b/winio.c @@ -462,7 +462,7 @@ void onekey(char *keystroke, char *desc) { char description[80]; - snprintf(description, 13, " %-11s", desc); + snprintf(description, 12, " %-10s", desc); wattron(bottomwin, A_REVERSE); waddstr(bottomwin, keystroke); wattroff(bottomwin, A_REVERSE);