Always print file when context is ALL
This commit is contained in:
parent
07c628471c
commit
2f9b0ce941
2
bp.c
2
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user