aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c
index 459c0ab26b1..a53eac29216 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2545,8 +2545,8 @@ regex_compile (pattern, size, syntax, bufp)
2545 re_char *p1 = p; 2545 re_char *p1 = p;
2546 2546
2547 /* If there's no special whitespace regexp, treat 2547 /* If there's no special whitespace regexp, treat
2548 spaces normally. */ 2548 spaces normally. And don't try to do this recursively. */
2549 if (!whitespace_regexp) 2549 if (!whitespace_regexp || in_subpattern)
2550 goto normal_char; 2550 goto normal_char;
2551 2551
2552 /* Peek past following spaces. */ 2552 /* Peek past following spaces. */