aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 13:12:22 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 13:12:22 -0800
commit00b96b1e1373335ff05145c5c678beff38faf369 (patch)
tree203c620c1d1f969091f3866611a73ff4eeaf7cf5 /bp.c
parentef345797e2c8b6086af979ee4414a29abba16164 (diff)
Print trailing context in INPLACE modification
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bp.c b/bp.c
index c6d9739..ce67ce2 100644
--- a/bp.c
+++ b/bp.c
@@ -166,6 +166,8 @@ static int inplace_modify_file(def_t *defs, file_t *f, vm_op_t *pattern)
}
if (inplace_file) {
+ // Print trailing context lines:
+ print_match(inplace_file, &pr, NULL);
printf("%s\n", f->filename);
fclose(inplace_file);
}