mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
This commit is contained in:
@@ -2931,7 +2931,7 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
|
||||
find_start_of_word(&VIsual);
|
||||
if (*p_sel == 'e' && *get_cursor_pos_ptr() != NUL) {
|
||||
curwin->w_cursor.col +=
|
||||
(*mb_ptr2len)(get_cursor_pos_ptr());
|
||||
utfc_ptr2len(get_cursor_pos_ptr());
|
||||
}
|
||||
find_end_of_word(&curwin->w_cursor);
|
||||
}
|
||||
@@ -2998,7 +2998,7 @@ static void find_end_of_word(pos_T *pos)
|
||||
}
|
||||
cclass = get_mouse_class(line + pos->col);
|
||||
while (line[pos->col] != NUL) {
|
||||
col = pos->col + (*mb_ptr2len)(line + pos->col);
|
||||
col = pos->col + utfc_ptr2len(line + pos->col);
|
||||
if (get_mouse_class(line + col) != cclass) {
|
||||
if (*p_sel == 'e') {
|
||||
pos->col = col;
|
||||
@@ -3437,7 +3437,7 @@ void clear_showcmd(void)
|
||||
e = ml_get_pos(&VIsual);
|
||||
}
|
||||
while ((*p_sel != 'e') ? s <= e : s < e) {
|
||||
l = (*mb_ptr2len)(s);
|
||||
l = utfc_ptr2len(s);
|
||||
if (l == 0) {
|
||||
++bytes;
|
||||
++chars;
|
||||
@@ -5382,7 +5382,7 @@ static void nv_right(cmdarg_T *cap)
|
||||
if (virtual_active()) {
|
||||
oneright();
|
||||
} else {
|
||||
curwin->w_cursor.col += (*mb_ptr2len)(get_cursor_pos_ptr());
|
||||
curwin->w_cursor.col += utfc_ptr2len(get_cursor_pos_ptr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user