diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-06-27 11:50:56 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-06-27 11:50:56 +0000 |
| commit | edfa832c6a30798d4bfa97ea8e01289a060dfb34 (patch) | |
| tree | 133307cf5bde781fe6f8c172978cdb6ef75a33f9 /lib/libedit/parse.c | |
| parent | f76efb86fbcc8fa2385dbaa54dfb816773ba38d4 (diff) | |
Notes
Diffstat (limited to 'lib/libedit/parse.c')
| -rw-r--r-- | lib/libedit/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libedit/parse.c b/lib/libedit/parse.c index 751cc19c6237..dd5bd942fe7c 100644 --- a/lib/libedit/parse.c +++ b/lib/libedit/parse.c @@ -193,14 +193,14 @@ parse__escape(ptr) break; } } - else if (*p == '^' && isalpha((unsigned char) p[1])) { + else if (*p == '^' && isascii(p[1]) && (p[1] == '?' || isalpha(p[1]))) { p++; c = (*p == '?') ? '\177' : (*p & 0237); } else c = *p; *ptr = ++p; - return c; + return (unsigned char)c; } /* parse__string(): |
