aboutsummaryrefslogtreecommitdiff
path: root/printmatch.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-28 02:05:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-28 02:05:57 -0400
commit2ec9f76b7221938061d12e268e97bc33e5653a8e (patch)
tree478a13579034b8bf0a2a533f59ed526b6667573d /printmatch.c
parentacdb6ff91b60dab1c65d92f2de35a553ebcb3301 (diff)
Rename 'Match' macro to avoid confusion
Diffstat (limited to 'printmatch.c')
-rw-r--r--printmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printmatch.c b/printmatch.c
index 8421a83..d856372 100644
--- a/printmatch.c
+++ b/printmatch.c
@@ -200,7 +200,7 @@ public int fprint_match(FILE *out, const char *file_start, match_t *m, print_opt
{
int printed = 0;
if (m->pat->type == BP_REPLACE) {
- auto rep = Match(m->pat, BP_REPLACE);
+ auto rep = When(m->pat, BP_REPLACE);
const char *text = rep->text;
const char *end = &text[rep->len];
if (opts && opts->replace_color) printed += fprintf(out, "%s", opts->replace_color);