X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=grep.c;h=9c5e1cd950c8d1d97290a047fb3780482f8eb8b7;hb=bd193f46b70fd3f8a55e2a8dcbb1fb2b4eec13d6;hp=b29d09c7f6a5a7f9621fb5287eb07e72ece7f484;hpb=3f7d11c45421051a010690c3b9cc28bce98b8c3f;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;