summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-08-10 21:07:57 +0000
committerBram Moolenaar <Bram@vim.org>2005-08-10 21:07:57 +0000
commit0fa313a71870ccc2ba63da25a7abea850f5b3d02 (patch)
treefc949b566e1d78f6eea570aab55c52b7d6a6b052 /src/edit.c
parentc388fbf9d99a8950c8c9a01466cfb8baa104ee8c (diff)
downloadvim-0fa313a71870ccc2ba63da25a7abea850f5b3d02.zip
updated for version 7.0127
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/edit.c b/src/edit.c
index 1396c10d7..41214b837 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -444,7 +444,7 @@ edit(cmdchar, startln, count)
#ifdef FEAT_MBYTE
else if (has_mbyte)
{
- i = (*mb_ptr2len_check)(ptr);
+ i = (*mb_ptr2len)(ptr);
if (ptr[i] == NUL)
curwin->w_cursor.col += i;
}
@@ -1561,7 +1561,7 @@ change_indent(type, amount, round, replaced)
last_vcol = vcol;
#ifdef FEAT_MBYTE
if (has_mbyte && new_cursor_col >= 0)
- new_cursor_col += (*mb_ptr2len_check)(ptr + new_cursor_col);
+ new_cursor_col += (*mb_ptr2len)(ptr + new_cursor_col);
else
#endif
++new_cursor_col;
@@ -2153,7 +2153,7 @@ ins_compl_dictionaries(dict, pat, dir, flags, thesaurus)
* with single-byte non-word characters. */
while (*ptr != NUL)
{
- int l = (*mb_ptr2len_check)(ptr);
+ int l = (*mb_ptr2len)(ptr);
if (l < 2 && !vim_iswordc(*ptr))
break;
@@ -2203,7 +2203,7 @@ find_word_start(ptr)
#ifdef FEAT_MBYTE
if (has_mbyte)
while (*ptr != NUL && *ptr != '\n' && mb_get_class(ptr) <= 1)
- ptr += (*mb_ptr2len_check)(ptr);
+ ptr += (*mb_ptr2len)(ptr);
else
#endif
while (*ptr != NUL && *ptr != '\n' && !vim_iswordc(*ptr))
@@ -2228,7 +2228,7 @@ find_word_end(ptr)
if (start_class > 1)
while (*ptr != NUL)
{
- ptr += (*mb_ptr2len_check)(ptr);
+ ptr += (*mb_ptr2len)(ptr);
if (mb_get_class(ptr) != start_class)
break;
}
@@ -3756,7 +3756,7 @@ quote_meta(dest, src, len)
{
int i, mb_len;
- mb_len = (*mb_ptr2len_check)(src) - 1;
+ mb_len = (*mb_ptr2len)(src) - 1;
if (mb_len > 0 && len >= mb_len)
for (i = 0; i < mb_len; ++i)
{
@@ -4166,7 +4166,7 @@ insertchar(c, flags, second_indent)
#ifdef FEAT_MBYTE
if (has_mbyte)
foundcol = curwin->w_cursor.col
- + (*mb_ptr2len_check)(ml_get_cursor());
+ + (*mb_ptr2len)(ml_get_cursor());
else
#endif
foundcol = curwin->w_cursor.col + 1;
@@ -5053,7 +5053,7 @@ oneright()
ptr = ml_get_cursor();
#ifdef FEAT_MBYTE
- if (has_mbyte && (l = (*mb_ptr2len_check)(ptr)) > 1)
+ if (has_mbyte && (l = (*mb_ptr2len)(ptr)) > 1)
{
/* The character under the cursor is a multi-byte character, move
* several bytes right, but don't end up on the NUL. */
@@ -5633,7 +5633,7 @@ replace_do_bs()
{
vcol += chartabsize(p + i, vcol);
#ifdef FEAT_MBYTE
- i += (*mb_ptr2len_check)(p) - 1;
+ i += (*mb_ptr2len)(p) - 1;
#endif
}
vcol -= start_vcol;
@@ -7288,7 +7288,7 @@ ins_right()
{
#ifdef FEAT_MBYTE
if (has_mbyte)
- curwin->w_cursor.col += (*mb_ptr2len_check)(ml_get_cursor());
+ curwin->w_cursor.col += (*mb_ptr2len)(ml_get_cursor());
else
#endif
++curwin->w_cursor.col;