From 2f9b0ce941b0cdb6b332e4ef510fda07e8201801 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 23 Aug 2021 12:42:57 -0700 Subject: Always print file when context is ALL --- bp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp.c b/bp.c index 689432c..f626628 100644 --- a/bp.c +++ b/bp.c @@ -249,7 +249,7 @@ static int print_matches(FILE *out, def_t *defs, file_t *f, pat_t *pattern) } if (m) recycle_if_unused(&m); - if (matches > 0) { + if (matches > 0 || (options.context_before == ALL_CONTEXT && options.context_after == ALL_CONTEXT)) { // Print trailing context lines: print_match(out, &pr, NULL); } -- cgit v1.2.3