about summary refs log tree commit diff stats
path: root/src/LYKeymap.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1997-09-19 01:14:00 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1997-09-19 01:14:00 -0400
commit443226a5ffcf805f6ab3ccbcc2a6b4802793b07d (patch)
treeb6f0dca30c155e9ea2fa8ec78271fb44744b05ce /src/LYKeymap.c
parentd2e46bbfcbedb43938b866f4ad9e8bf1d4084b7c (diff)
downloadlynx-snapshots-443226a5ffcf805f6ab3ccbcc2a6b4802793b07d.tar.gz
snapshot of project "lynx", label v2-7-1ac_0-69
Diffstat (limited to 'src/LYKeymap.c')
-rw-r--r--src/LYKeymap.c4
1 files changed, 2 insertions, 2 deletions
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, "&gt;           ");
 	else if (c == 0177)
 		sprintf(buf, "&lt;delete&gt;    ");
-	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);
 	}