From 31456074c8d9b600923ee19325584545919c523b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 27 May 2011 21:56:09 +0000 Subject: histlexwords splitting of ";;" in case --- Src/hist.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Src') diff --git a/Src/hist.c b/Src/hist.c index c368b5f4b..01a97da2b 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -2406,6 +2406,13 @@ readhistfile(char *fn, int err, int readflags) uselex = 0; break; } + } else if (!strcmp(word, ";") && strpfx(";;", pt)) { + /* + * Don't get confused between a semicolon that's + * probably really a newline and a double + * semicolon that's terminating a case. + */ + continue; } words[nwordpos++] = pt - start; pt += strlen(word); -- cgit 1.4.1