diff options
Diffstat (limited to 'magrep.c')
-rw-r--r-- | magrep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/magrep.c b/magrep.c index 7b6a7a4..0c53c9f 100644 --- a/magrep.c +++ b/magrep.c @@ -40,6 +40,13 @@ match(char *file, char *s) void magrep(char *file) { + if (!*header) { + char *flags = strstr(file, ":2,"); + if (flags) + match(file, flags+3); + return; + } + char *filename = file; while (*filename == ' ' || *filename == '\t') filename++; |