diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-18 10:07:23 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-18 10:07:23 -0700 |
| commit | 48cb65d2b50c9865e60fe7cd6d13b2844d09151c (patch) | |
| tree | 9829e3ae41f6107bebb8c030fef75ef532d81e5e /bp.c | |
| parent | f49f408e81fac980b70d3a1099c386ac2839b2a6 (diff) | |
True -> 1
Diffstat (limited to 'bp.c')
| -rw-r--r-- | bp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -306,7 +306,7 @@ static int inplace_modify_file(def_t *defs, file_t *f, pat_t *pattern) confirm_t confirm_file = options.confirm; for (match_t *m = NULL; (m = next_match(defs, f, m, pattern, options.skip, options.ignorecase)); ) { ++matches; - printer_t err_pr = {.file = f, .context_lines = true, .use_color = true, .print_line_numbers = true}; + printer_t err_pr = {.file = f, .context_lines = 1, .use_color = true, .print_line_numbers = true}; if (print_errors(&err_pr, m) > 0) exit(EXIT_FAILURE); // Lazy-open file for writing upon first match: @@ -353,7 +353,7 @@ static int print_matches(def_t *defs, file_t *f, pat_t *pattern) }; for (match_t *m = NULL; (m = next_match(defs, f, m, pattern, options.skip, options.ignorecase)); ) { - printer_t err_pr = {.file = f, .context_lines = true, .use_color = true, .print_line_numbers = true}; + printer_t err_pr = {.file = f, .context_lines = 1, .use_color = true, .print_line_numbers = true}; if (print_errors(&err_pr, m) > 0) exit(EXIT_FAILURE); |
