summaryrefslogtreecommitdiff
path: root/src/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/help.c b/src/help.c
index a624941..f2fdd18 100644
--- a/src/help.c
+++ b/src/help.c
@@ -182,7 +182,7 @@ struct action *ktabp;
for (key = 0; key < 256 + KMAP_KEYS; key++)
{
n = ktabp[key].nr;
- if (n == RC_ILLEGAL)
+ if (n == RC_ILLEGAL || n > RC_LAST)
continue;
if (ktabp[key].args == noargs)
{