updated for version 7.0127
diff --git a/src/search.c b/src/search.c
index a0c46ff..bc5da67 100644
--- a/src/search.c
+++ b/src/search.c
@@ -259,7 +259,7 @@
{
int mb_len;
- mb_len = (*mb_ptr2len_check)(s + s_i);
+ mb_len = (*mb_ptr2len)(s + s_i);
rev_i -= mb_len;
mch_memmove(rev + rev_i, s + s_i, mb_len);
s_i += mb_len - 1;
@@ -372,7 +372,7 @@
#ifdef FEAT_MBYTE
int l;
- if (has_mbyte && (l = (*mb_ptr2len_check)(p)) > 1)
+ if (has_mbyte && (l = (*mb_ptr2len)(p)) > 1)
{
if (enc_utf8 && utf_isupper(utf_ptr2char(p)))
{
@@ -544,7 +544,7 @@
/* Watch out for the "col" being MAXCOL - 2, used in a closed fold. */
else if (has_mbyte && pos->lnum >= 1 && pos->lnum <= buf->b_ml.ml_line_count
&& pos->col < MAXCOL - 2)
- extra_col = (*mb_ptr2len_check)(ml_get_buf(buf, pos->lnum, FALSE)
+ extra_col = (*mb_ptr2len)(ml_get_buf(buf, pos->lnum, FALSE)
+ pos->col);
#endif
else
@@ -647,7 +647,7 @@
#ifdef FEAT_MBYTE
if (has_mbyte)
matchcol +=
- (*mb_ptr2len_check)(ptr + matchcol);
+ (*mb_ptr2len)(ptr + matchcol);
else
#endif
++matchcol;
@@ -660,7 +660,7 @@
{
#ifdef FEAT_MBYTE
if (has_mbyte)
- matchcol += (*mb_ptr2len_check)(ptr
+ matchcol += (*mb_ptr2len)(ptr
+ matchcol);
else
#endif
@@ -750,7 +750,7 @@
#ifdef FEAT_MBYTE
if (has_mbyte)
matchcol +=
- (*mb_ptr2len_check)(ptr + matchcol);
+ (*mb_ptr2len)(ptr + matchcol);
else
#endif
++matchcol;
@@ -767,7 +767,7 @@
#ifdef FEAT_MBYTE
if (has_mbyte)
matchcol +=
- (*mb_ptr2len_check)(ptr + matchcol);
+ (*mb_ptr2len)(ptr + matchcol);
else
#endif
++matchcol;
@@ -1447,7 +1447,7 @@
{
if (dir > 0)
{
- col += (*mb_ptr2len_check)(p + col);
+ col += (*mb_ptr2len)(p + col);
if (col >= len)
return FAIL;
}
@@ -1747,7 +1747,7 @@
break;
#ifdef FEAT_MBYTE
if (has_mbyte)
- pos.col += (*mb_ptr2len_check)(linep + pos.col);
+ pos.col += (*mb_ptr2len)(linep + pos.col);
else
#endif
++pos.col;
@@ -1950,7 +1950,7 @@
{
#ifdef FEAT_MBYTE
if (has_mbyte)
- pos.col += (*mb_ptr2len_check)(linep + pos.col);
+ pos.col += (*mb_ptr2len)(linep + pos.col);
else
#endif
++pos.col;
@@ -4030,7 +4030,7 @@
break;
#ifdef FEAT_MBYTE
if (has_mbyte)
- col += (*mb_ptr2len_check)(line + col);
+ col += (*mb_ptr2len)(line + col);
else
#endif
++col;