changeset 58328:829390516ec0

Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Fri, 19 Nov 2004 19:47:39 +0000
parents a360835c5032
children 30f22485a11e
files src/regex.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.  */