summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-string.c')
-rw-r--r--cmd-string.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd-string.c b/cmd-string.c
index 9ba399b2..c12ac1d7 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -215,6 +215,9 @@ cmd_string_string(const char *s, size_t *p, char endch, int esc)
switch (ch = cmd_string_getc(s, p)) {
case EOF:
goto error;
+ case 'e':
+ ch = '\033';
+ break;
case 'r':
ch = '\r';
break;