From 443226a5ffcf805f6ab3ccbcc2a6b4802793b07d Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 19 Sep 1997 01:14:00 -0400 Subject: snapshot of project "lynx", label v2-7-1ac_0-69 --- src/LYKeymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LYKeymap.c') diff --git a/src/LYKeymap.c b/src/LYKeymap.c index d3dee733..1ffddd5e 100644 --- a/src/LYKeymap.c +++ b/src/LYKeymap.c @@ -520,7 +520,7 @@ PRIVATE char *pretty ARGS1 (int, c) sprintf(buf, "> "); else if (c == 0177) sprintf(buf, "<delete> "); - else if (c > ' ' && c < 0377) + else if (c > ' ' && c <= 0377) sprintf(buf, "%c", c); else if (c < ' ') sprintf(buf, "^%c", c|0100); @@ -589,7 +589,7 @@ PRIVATE int LYLoadKeymap ARGS4 ( } for (i = 1; i < sizeof(keymap); i++) { /* LYK_PIPE not implemented yet */ - if (!isalpha(i-1) && + if ((i > 127 || i <= ' ' || !isalpha(i-1)) && strcmp(revmap[(unsigned char)keymap[i]].name, "PIPE")) { print_binding(target, buf, i); } -- cgit 1.4.1-2-gfad0