tokkee.org
Code
projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test-lib: fix http exit codes
[git.git]
/
grep.c
diff --git
a/grep.c
b/grep.c
index a649f063cf28baa5b0ddce72d7d6e4d9fca6f360..cc6d5b04c15b670c55bdb9e2089e0b71f72453cc 100644
(file)
--- a/
grep.c
+++ b/
grep.c
@@
-360,6
+360,7
@@
static int match_one_pattern(struct grep_pat *p, char *bol, char *eol,
bol = pmatch[0].rm_so + bol + 1;
while (word_char(bol[-1]) && bol < eol)
bol++;
+ eflags |= REG_NOTBOL;
if (bol < eol)
goto again;
}