X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=grep.c;h=9c5e1cd950c8d1d97290a047fb3780482f8eb8b7;hb=39af78961d8e7f4c0aee73e77e9eb5b6033f79c2;hp=b29d09c7f6a5a7f9621fb5287eb07e72ece7f484;hpb=c07aa5b218b9f519c29b5be71fe43cd79365dd37;p=git.git diff --git a/grep.c b/grep.c index b29d09c7f..9c5e1cd95 100644 --- a/grep.c +++ b/grep.c @@ -79,7 +79,7 @@ static void compile_pcre_regexp(struct grep_pat *p, const struct grep_opt *opt) { const char *error; int erroffset; - int options = 0; + int options = PCRE_MULTILINE; if (opt->ignore_case) options |= PCRE_CASELESS;