1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270132

View File

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