diff options
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -395,7 +395,7 @@ void print_match(FILE *out, printer_t *pr, match_t *m) 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->pos > pr->file->contents && pr->pos[-1] != '\n') fprintf(out, "\n"); + if (!pr->needs_line_number) fprintf(out, "\n"); } if (pr->use_color) fprintf(out, "%s", color_normal); } |
