aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-27 21:42:22 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-27 21:42:22 -0700
commit90bfefda165dfaf716372a60e0a529e40a48ef5b (patch)
tree67bc5273bba38dfec0617ffee7af25d8876342f7 /bp.c
parent117ccaa1dc8b3dfcd992b05c4f9bae4140545705 (diff)
Added comment
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bp.c b/bp.c
index aed503e..cd32325 100644
--- a/bp.c
+++ b/bp.c
@@ -377,7 +377,7 @@ static int print_matches(FILE *out, file_t *f, pat_t *pattern)
// Print trailing context if needed:
if (matches > 0) {
fprint_context(out, f, prev, NULL);
- if (last_line_num < 0) {
+ if (last_line_num < 0) { // Hacky fix to ensure line number gets printed for `bp -p '$$'`
fprint_linenum(out, f, f->nlines, print_opts.normal_color);
fputc('\n', out);
}