diff options
Diffstat (limited to 'lib/libedit/key.c')
-rw-r--r-- | lib/libedit/key.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libedit/key.c b/lib/libedit/key.c index 302b6bd..a84f413 100644 --- a/lib/libedit/key.c +++ b/lib/libedit/key.c @@ -640,6 +640,8 @@ key__decode_char(buf, cnt, ch) char *buf; int cnt, ch; { + ch &= 0xFF; + if (ch == 0) { buf[cnt++] = '^'; buf[cnt] = '@'; |