updated for version 7.0127
diff --git a/src/normal.c b/src/normal.c
index 6279a6b..857866f 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1731,7 +1731,7 @@
{
int l;
- l = (*mb_ptr2len_check)(ml_get_pos(&oap->end));
+ l = (*mb_ptr2len)(ml_get_pos(&oap->end));
if (l > 1)
oap->end.col += l - 1;
}
@@ -2866,7 +2866,7 @@
if (*p_sel == 'e' && *ml_get_cursor() != NUL)
#ifdef FEAT_MBYTE
curwin->w_cursor.col +=
- (*mb_ptr2len_check)(ml_get_cursor());
+ (*mb_ptr2len)(ml_get_cursor());
#else
++curwin->w_cursor.col;
#endif
@@ -2940,7 +2940,7 @@
while (line[pos->col] != NUL)
{
#ifdef FEAT_MBYTE
- col = pos->col + (*mb_ptr2len_check)(line + pos->col);
+ col = pos->col + (*mb_ptr2len)(line + pos->col);
#else
col = pos->col + 1;
#endif
@@ -3210,7 +3210,7 @@
this_class = mb_get_class(ptr + col);
if (this_class != 0 && (i == 1 || this_class != 1))
break;
- col += (*mb_ptr2len_check)(ptr + col);
+ col += (*mb_ptr2len)(ptr + col);
}
}
else
@@ -3332,7 +3332,7 @@
&& find_is_eval_item(ptr + col, &col, &bn, FORWARD))
# endif
))
- col += (*mb_ptr2len_check)(ptr + col);
+ col += (*mb_ptr2len)(ptr + col);
}
else
#endif
@@ -5135,7 +5135,7 @@
if (has_mbyte)
{
int i;
- int len = (*mb_ptr2len_check)(ptr) - 1;
+ int len = (*mb_ptr2len)(ptr) - 1;
for (i = 0; i < len && n >= 1; ++i, --n)
*p++ = *ptr++;
@@ -5207,7 +5207,7 @@
#ifdef FEAT_MBYTE
if (has_mbyte)
/* Correct the length to include the whole last character. */
- *lenp += (*mb_ptr2len_check)(*pp + (*lenp - 1)) - 1;
+ *lenp += (*mb_ptr2len)(*pp + (*lenp - 1)) - 1;
#endif
}
reset_VIsual_and_resel();
@@ -5430,7 +5430,7 @@
# ifdef FEAT_MBYTE
if (has_mbyte)
curwin->w_cursor.col +=
- (*mb_ptr2len_check)(ml_get_cursor());
+ (*mb_ptr2len)(ml_get_cursor());
else
# endif
++curwin->w_cursor.col;