From b26cb392963f5c19b5be83c968c596cd7e6128c1 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Tue, 2 Oct 2001 04:22:34 +0000 Subject: [PATCH] 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 --- nano.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano.c b/nano.c index 64ce7b55..0ca7c18e 100644 --- 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, " "); -- 2.39.5