diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-08-11 19:20:30 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-08-11 19:20:30 +0000 |
| commit | 6f99f89bbea765ba537f8ddc39794da313fe259b (patch) | |
| tree | 9a2a7c594f9c5a81136b03380da55a891b29c1aa /lib/libedit/key.c | |
| parent | b7c6d4477a4852a5b013214774cbe16007c6b0f4 (diff) | |
Notes
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 302b6bd68d54..a84f413b5510 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] = '@'; |
