diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-24 23:00:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-24 23:00:40 -0700 |
| commit | 1b777a569e10252e3006923c51fe53810ee57660 (patch) | |
| tree | 13c05702f57580e5b3d97f5056d6c2643f46a5ce /bp.c | |
| parent | 6c612d4defbab5dad2c582ebb222ef791f474007 (diff) | |
Fixed double line numbering
Diffstat (limited to 'bp.c')
| -rw-r--r-- | bp.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |
