diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 13:45:51 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 13:45:51 -0700 |
| commit | 8268e67875abeaae99d0793e424514662a84628d (patch) | |
| tree | 70120e92618860374016af294e31bdf135404dee /print.c | |
| parent | d3c1526f71a083b98b7ac8833434cd0347d8fc7f (diff) | |
Bugfix for replacing @0
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,7 +130,7 @@ static void _print_match(FILE *out, printer_t *pr, match_t *m) // Capture substitution if (*r == '@' && r[1] && r[1] != '@') { ++r; - match_t *cap = get_capture(m, &r); + match_t *cap = get_capture(m->children[0], &r); if (cap != NULL) { _print_match(out, pr, cap); if (pr->use_color && current_color != color_replace) { |
