- Do not look for more matching lines if -L is specified

Submitted by:   eadler (based on)
MFC after:	2 weeks
This commit is contained in:
Gabor Kovesdan 2014-08-18 12:29:28 +00:00
parent ca1351acba
commit 2ac5b1c763

View file

@ -336,7 +336,7 @@ procline(struct str *l, int nottext)
}
/* One pass if we are not recording matches */
if (!wflag && ((color == NULL && !oflag) || qflag || lflag))
if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag))
break;
if (st == (size_t)pmatch.rm_so)