]> git.wh0rd.org Git - nano.git/commitdiff
Don't show non-positive shortcut keys in help_init()
authorChris Allegretta <chrisa@asty.org>
Tue, 2 Oct 2001 04:22:34 +0000 (04:22 +0000)
committerChris Allegretta <chrisa@asty.org>
Tue, 2 Oct 2001 04:22:34 +0000 (04:22 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@814 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

nano.c

diff --git a/nano.c b/nano.c
index 64ce7b553faef7afca42b1696efc9995d863b1cd..0ca7c18e6dc014fd75cea980345309f7b4910297 100644 (file)
--- 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, "      ");