aboutsummaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-grep.c')
-rw-r--r--builtin-grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index 9343cc5e5..ff8e51b43 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -285,13 +285,13 @@ static int flush_grep(struct grep_opt *opt,
argc -= 2;
}
- if (opt->pre_context || opt->post_context || opt->funcname) {
+ if (opt->pre_context || opt->post_context) {
/*
* grep handles hunk marks between files, but we need to
* do that ourselves between multiple calls.
*/
if (opt->show_hunk_mark)
- write_or_die(1, opt->funcname ? "==\n" : "--\n", 3);
+ write_or_die(1, "--\n", 3);
else
opt->show_hunk_mark = 1;
}