src/main.c, prompt(), fix incorrect backslash expansion in promptstrings
This commit is contained in:
parent
a65a028067
commit
15a04192da
|
|
@ -532,7 +532,7 @@ prompt(void)
|
||||||
break;
|
break;
|
||||||
case '\\':
|
case '\\':
|
||||||
if (s[1])
|
if (s[1])
|
||||||
p += sprintf(p, "%c", strip(*++s));
|
s++;
|
||||||
default:
|
default:
|
||||||
*p = (char) strip(*s); ++p;
|
*p = (char) strip(*s); ++p;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue