From: Chris Allegretta Date: Tue, 2 Oct 2001 04:22:34 +0000 (+0000) Subject: Don't show non-positive shortcut keys in help_init() X-Git-Tag: v1.1.2~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b26cb392963f5c19b5be83c968c596cd7e6128c1;p=nano.git 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 --- 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, " ");