summaryrefslogtreecommitdiff
path: root/src/beval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/beval.c')
-rw-r--r--src/beval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/beval.c b/src/beval.c
index 69e667d63..8ef8e8e1d 100644
--- a/src/beval.c
+++ b/src/beval.c
@@ -92,7 +92,7 @@ find_word_under_cursor(
lbuf = ml_get_buf(curwin->w_buffer, VIsual.lnum, FALSE);
len = epos->col - spos->col;
if (*p_sel != 'e')
- len += MB_PTR2LEN(lbuf + epos->col);
+ len += mb_ptr2len(lbuf + epos->col);
lbuf = vim_strnsave(lbuf + spos->col, len);
lnum = spos->lnum;
col = spos->col;