diff options
Diffstat (limited to 'src/LYKeymap.c')
-rw-r--r-- | src/LYKeymap.c | 4 |
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, "> "); 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); } |