Commit b26cb392 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
parent e10f389e
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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, " ");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment