aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-08-06 18:06:11 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-08-06 18:06:11 -0700
commit78034539773a3be2113fed80c39878d2727d6ef2 (patch)
treed6d1ebddf4587f8b902b86998bd5996257892b5c
parent887b1dc7f28944fcfab76558928e526cbf06b8a0 (diff)
Inplace modifying should set context to all
-rw-r--r--bp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bp.c b/bp.c
index 8f805ef..6a3e679 100644
--- a/bp.c
+++ b/bp.c
@@ -424,6 +424,7 @@ int main(int argc, char *argv[])
options.mode = MODE_INPLACE;
options.print_filenames = false;
options.format = FORMAT_PLAIN;
+ options.context_before = options.context_after = ALL_CONTEXT;
} else if (BOOLFLAG("-G") || BOOLFLAG("--git")) {
options.git_mode = true;
} else if (BOOLFLAG("-i") || BOOLFLAG("--ignore-case")) {