aboutsummaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'print.c')
-rw-r--r--print.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/print.c b/print.c
index 9e0897c..8c2fe5f 100644
--- a/print.c
+++ b/print.c
@@ -413,8 +413,7 @@ void print_match(FILE *out, printer_t *pr, match_t *m)
int print_errors(printer_t *pr, match_t *m)
{
int ret = 0;
- if (m->pat->type == BP_CAPTURE && m->pat->args.capture.name
- && strncmp(m->pat->args.capture.name, "!", m->pat->args.capture.namelen) == 0) {
+ if (m->pat->type == BP_ERROR) {
printf("\033[31;1m");
printer_t tmp = {.file = pr->file}; // No bells and whistles
print_match(stdout, &tmp, m); // Error message