diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c index 41d0d516049b..4de36a715d11 100644 --- a/usr.bin/grep/util.c +++ b/usr.bin/grep/util.c @@ -343,7 +343,7 @@ procline(struct str *l, int nottext) return (c); /* Binary file */ /* Dealing with the context */ - if ((tail || c) && !cflag && !qflag) { + if ((tail || c) && !cflag && !qflag && !lflag && !Lflag) { if (c) { if (!first && !prev && !tail && Aflag) printf("--\n");