summaryrefslogtreecommitdiff
path: root/src/grijp.c
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-09-08 17:00:54 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-09-08 17:00:54 +0200
commit50f84ac9a2796789ec5bad409a5fb205128cc366 (patch)
tree060e2945040fb7b15dd8020c46aada6c1cab6ee1 /src/grijp.c
parent260c87e5166e00e90463b88b2a75862173a8dc44 (diff)
grijp: wees klaar met een regel als één patroon overeenkomt
Diffstat (limited to 'src/grijp.c')
-rw-r--r--src/grijp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/grijp.c b/src/grijp.c
index d94cba8..add2806 100644
--- a/src/grijp.c
+++ b/src/grijp.c
@@ -176,6 +176,7 @@ static int process(char *fname, bool isstdin) {
anyMatch = true;
print_match(fname, line);
if (list) goto done;
+ break;
}
}
}