From dabc3cb0df527193c1981322b25fcdd086570fe6 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Fri, 25 Aug 2000 01:44:12 +0000 Subject: [PATCH] Off by one error fix (Rocco Corsi) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@187 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ winio.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4ad19a76..3f19dded 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ CVS Code edit_refresh_clearok() - New function, does a total update for edit refresh, needed to fix lack of reversed text on searching with MARK_ISSET. + onekey() + - Off by one error fix (Rocco Corsi). - search.c: search_abort() - Now calls edit_refresh_clearok when MARK_ISSET to handle screen diff --git a/winio.c b/winio.c index 1e450113..746fe3a7 100644 --- a/winio.c +++ b/winio.c @@ -462,7 +462,7 @@ void onekey(char *keystroke, char *desc) { char description[80]; - snprintf(description, 12, " %-11s", desc); + snprintf(description, 13, " %-11s", desc); wattron(bottomwin, A_REVERSE); waddstr(bottomwin, keystroke); wattroff(bottomwin, A_REVERSE); -- 2.39.5