Commit 130b729c authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(simple_search): Fix settingthis_pos_byte in backward search.

parent 0aae3288
......@@ -1358,13 +1358,14 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
{
/* Try matching at position POS. */
int this_pos = pos - len;
int this_pos_byte = pos_byte - len_byte;
int this_pos_byte;
int this_len = len;
int this_len_byte = len_byte;
unsigned char *p = pat;
if (pos - len < lim)
goto stop;
this_pos_byte = CHAR_TO_BYTE (this_pos);
while (this_len > 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment