38 lines
957 B
Diff
38 lines
957 B
Diff
--- src/search.c
|
|
+++ src/search.c
|
|
@@ -365,7 +365,7 @@
|
|
static size_t
|
|
EGexecute (char const *buf, size_t size, size_t *match_size, int exact)
|
|
{
|
|
- register char const *buflim, *beg, *end, *oldbeg;
|
|
+ register char const *buflim, *beg, *end;
|
|
char eol = eolbyte;
|
|
int backref, start, len;
|
|
struct kwsmatch kwsm;
|
|
@@ -407,25 +407,11 @@
|
|
#endif /* MBS_SUPPORT */
|
|
return (size_t)-1;
|
|
}
|
|
- oldbeg = beg;
|
|
beg += offset;
|
|
/* Narrow down to the line containing the candidate, and
|
|
run it through DFA. */
|
|
end = memchr(beg, eol, buflim - beg);
|
|
end++;
|
|
-#ifdef MBS_SUPPORT
|
|
- if (MB_CUR_MAX > 1)
|
|
- {
|
|
- if (mb_properties)
|
|
- {
|
|
- if (mb_properties[beg - buf] == 0)
|
|
- continue;
|
|
- }
|
|
- else if (! check_valid_multibyte (oldbeg, offset,
|
|
- end - oldbeg))
|
|
- continue;
|
|
- }
|
|
-#endif
|
|
while (beg > buf && beg[-1] != eol)
|
|
--beg;
|
|
if (kwsm.index < kwset_exact_matches)
|