nano

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

commit b26cb392963f5c19b5be83c968c596cd7e6128c1
parent e10f389e9c63f7f2aa340dc06583bbe400a2deb1
Author: Chris Allegretta <chrisa@asty.org>
Date:   Tue,  2 Oct 2001 04:22:34 +0000

Don't show non-positive shortcut keys in help_init()


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

Diffstat:
Mnano.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nano.c b/nano.c @@ -2288,7 +2288,7 @@ void help_init(void) /* Now add our shortcut info */ for (i = 0; i <= MAIN_LIST_LEN - 1; i++) { - if (main_list[i].val) + if (main_list[i].val > 0) sofar = snprintf(buf, BUFSIZ, "^%c ", main_list[i].val + 64); else sofar = snprintf(buf, BUFSIZ, " ");