# HG changeset patch # User Richard M. Stallman # Date 1100893659 0 # Node ID 829390516ec0b5ad2590107c6521084429966cd5 # Parent a360835c503259f400d97e27d7a61eef619404be Fix previous change. diff -r a360835c5032 -r 829390516ec0 src/regex.c --- a/src/regex.c Fri Nov 19 19:40:32 2004 +0000 +++ b/src/regex.c Fri Nov 19 19:47:39 2004 +0000 @@ -2545,8 +2545,8 @@ re_char *p1 = p; /* If there's no special whitespace regexp, treat - spaces normally. */ - if (!whitespace_regexp) + spaces normally. And don't try to do this recursively. */ + if (!whitespace_regexp || in_subpattern) goto normal_char; /* Peek past following spaces. */