Skip to content

Commit

Permalink
don't use onigenc_get_right_adjust_char_head_with_prev()
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Oct 1, 2020
1 parent d58d6d7 commit 4d5b01d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/regexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5158,8 +5158,7 @@ forward_search(regex_t* reg, const UChar* str, const UChar* end, UChar* start,
else {
*low = p - reg->dist_max;
if (*low > start) {
*low = onigenc_get_right_adjust_char_head_with_prev(reg->enc, start,
*low, (const UChar** )NULL);
*low = onigenc_get_right_adjust_char_head(reg->enc, start, *low);
}
}
}
Expand Down

0 comments on commit 4d5b01d

Please sign in to comment.