aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-10-06 18:52:38 -0700
committerGitHub <noreply@github.com>2019-10-06 18:52:38 -0700
commit23ba875b821c454e81093de83f7fd6555a4dd0c4 (patch)
tree3707321b4560e6d8b7d85d19a624ffdeaa374108 /src/nvim/ops.c
parent8f20c50caa7fa008f5e6257ef0fc43620e3baeb1 (diff)
parent97cdfdcde24c6a804f879b6464512008db4b5cef (diff)
downloadrneovim-23ba875b821c454e81093de83f7fd6555a4dd0c4.tar.gz
rneovim-23ba875b821c454e81093de83f7fd6555a4dd0c4.tar.bz2
rneovim-23ba875b821c454e81093de83f7fd6555a4dd0c4.zip
Merge #11170 from janlazo/vim-8.1.2120
vim-patch:8.1.2120
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 4f0c1b5cb9..6f515151d6 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -4641,7 +4641,7 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1)
if (visual) {
while (ptr[col] != NUL && length > 0 && !ascii_isdigit(ptr[col])
&& !(doalp && ASCII_ISALPHA(ptr[col]))) {
- int mb_len = MB_PTR2LEN(ptr + col);
+ int mb_len = utfc_ptr2len(ptr + col);
col += mb_len;
length -= mb_len;