Don't print line numbers when dealing with piped-in input
This commit is contained in:
parent
a07da1989d
commit
eeec0acd0a
3
bpeg.c
3
bpeg.c
@ -112,7 +112,8 @@ static int run_match(grammar_t *g, const char *filename, vm_op_t *pattern, unsig
|
||||
else
|
||||
printf("%s:\n", filename);
|
||||
}
|
||||
print_match(stdout, f, m, print_options);
|
||||
print_match(stdout, f, m,
|
||||
filename ? print_options : print_options & (print_options_t)~PRINT_LINE_NUMBERS);
|
||||
}
|
||||
destroy_file(&f);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user