summaryrefslogtreecommitdiff
path: root/lib/libedit/chared.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-06-27 11:50:56 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-06-27 11:50:56 +0000
commitedfa832c6a30798d4bfa97ea8e01289a060dfb34 (patch)
tree133307cf5bde781fe6f8c172978cdb6ef75a33f9 /lib/libedit/chared.c
parentf76efb86fbcc8fa2385dbaa54dfb816773ba38d4 (diff)
Notes
Diffstat (limited to 'lib/libedit/chared.c')
-rw-r--r--lib/libedit/chared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libedit/chared.c b/lib/libedit/chared.c
index b8acf510b412..dcd189c90343 100644
--- a/lib/libedit/chared.c
+++ b/lib/libedit/chared.c
@@ -575,8 +575,8 @@ c_gets(el, buf)
if (el_getc(el, &ch) != 1)
return ed_end_of_file(el, 0);
switch (ch) {
- case 0010: /* Delete and backspace */
- case 0177:
+ case '\010': /* Delete and backspace */
+ case '\177':
if (len > 1) {
*el->el_line.cursor-- = '\0';
el->el_line.lastchar = el->el_line.cursor;
@@ -592,7 +592,7 @@ c_gets(el, buf)
ch = 0;
break;
- case 0033: /* ESC */
+ case '\033': /* ESC */
case '\r': /* Newline */
case '\n':
break;