aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-22 22:10:28 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-22 22:10:28 -0700
commita712a61e4d4a0ce4de241eeb3fdeef0c1515f139 (patch)
tree1793f6d63166d7eb91aad06987703044302b9aa2
parentd957bd3273f1a281943e97aea08bc666dee17259 (diff)
Bugfix
-rw-r--r--print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.c b/print.c
index e049ca1..de2e91a 100644
--- a/print.c
+++ b/print.c
@@ -133,7 +133,7 @@ static void _print_match(FILE *out, printer_t *pr, match_t *m)
print_line_number(out, pr, line, pr->use_color ? color_replace : NULL, line > line_end);
// Capture substitution
- if (*r == '@' && r+1 < m->end && r[1] != '@') {
+ if (*r == '@' && r+1 < end && r[1] != '@') {
++r;
// Retrieve the capture value: