From 1b777a569e10252e3006923c51fe53810ee57660 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 24 Sep 2021 23:00:40 -0700 Subject: Fixed double line numbering --- bp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bp.c b/bp.c index 83a7b35..ce6b14c 100644 --- a/bp.c +++ b/bp.c @@ -343,8 +343,6 @@ static int print_matches(FILE *out, def_t *defs, file_t *f, pat_t *pattern) } fprint_context_between(out, prev, m->start); if (print_opts.normal_color) fprintf(out, "%s", print_opts.normal_color); - if (m->start == f->start || m->start[-1] == '\n') - fprint_linenum(out, f, (int)get_line_number(f, m->start), print_opts.normal_color); fprint_match(out, f->start, m, &print_opts); if (print_opts.normal_color) fprintf(out, "%s", print_opts.normal_color); prev = m->end; -- cgit v1.2.3