From f2db62cb551b6fb783f977e0f450e9c7f4f8d963 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 22 Sep 2021 22:57:44 -0700 Subject: Moved trailing newline guarantee code into bp.c --- print.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'print.c') diff --git a/print.c b/print.c index de2e91a..dcebce9 100644 --- a/print.c +++ b/print.c @@ -262,8 +262,6 @@ void print_match(FILE *out, printer_t *pr, match_t *m) // After the last match is printed, print the trailing context: const char *after_last = context_after(pr, pr->pos); print_between(out, pr, pr->pos, after_last, pr->use_color ? color_normal : NULL); - // Guarantee trailing newline - if (!pr->needs_line_number) fprintf(out, "\n"); } if (pr->use_color) fprintf(out, "%s", color_normal); } -- cgit v1.2.3