From a712a61e4d4a0ce4de241eeb3fdeef0c1515f139 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 22 Sep 2021 22:10:28 -0700 Subject: Bugfix --- print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print.c') 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: -- cgit v1.2.3