From af29896fe7cc22ecf57aac71fa6cf8fac9c32449 Mon Sep 17 00:00:00 2001 From: gabor Date: Sun, 12 Jun 2011 12:44:02 +0000 Subject: - Fix -w behavior - Make -F and -w work together - Fix --color to colorize all of the matches PR: bin/156826 Submitted by: Yuri Pankov Approved by: delphij (mentor) --- usr.bin/grep/fastgrep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/grep/fastgrep.c') diff --git a/usr.bin/grep/fastgrep.c b/usr.bin/grep/fastgrep.c index d5c9d31..bc8a3af 100644 --- a/usr.bin/grep/fastgrep.c +++ b/usr.bin/grep/fastgrep.c @@ -89,7 +89,7 @@ fastcomp(fastgrep_t *fg, const char *pat) fg->bol = false; fg->eol = false; fg->reversed = false; - fg->word = wflag; + fg->word = false; /* Remove end-of-line character ('$'). */ if (fg->len > 0 && pat[fg->len - 1] == '$') { -- cgit v1.1