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