From 19fe2dcc03d6f3c418e738061e46d0ae013c2550 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 21 Apr 2012 18:42:56 +0000 Subject: 30433: double backslash is not line continuation. --- Src/hist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/hist.c b/Src/hist.c index 4d522dddb..0e63dca37 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -2225,7 +2225,8 @@ readhistline(int start, char **bufp, int *bufsiz, FILE *in) } else { buf[len - 1] = '\0'; - if (len > 1 && buf[len - 2] == '\\') { + if (len > 1 && buf[len - 2] == '\\' && + (len < 3 || buf[len - 3] != '\\')) { buf[--len - 1] = '\n'; if (!feof(in)) return readhistline(len, bufp, bufsiz, in); -- cgit 1.4.1