diff options
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r-- | bin/sh/parser.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 8e98768..f1f4e07 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -1279,6 +1279,13 @@ readcstyleesc(char *out) c = pgetc(); if (c == PEOF) synerror("Unterminated quoted string"); + if (c == '\n') { + plinno++; + if (doprompt) + setprompt(2); + else + setprompt(0); + } } pungetc(); return out; |