aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/charset.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-03-24 16:43:01 -0400
committerGitHub <noreply@github.com>2017-03-24 16:43:01 -0400
commitd094a36e7c7ac8fe96915d9fbf348ae88caa07d9 (patch)
treef404371640c379af050b53c5e59a037fc9d6cfca /src/nvim/charset.c
parent38274051c066ff0a28582aae5c2edf47825d9f57 (diff)
parent2a6d44ca5232d5fbfa0401451b3ebce60e93ed4d (diff)
downloadrneovim-d094a36e7c7ac8fe96915d9fbf348ae88caa07d9.tar.gz
rneovim-d094a36e7c7ac8fe96915d9fbf348ae88caa07d9.tar.bz2
rneovim-d094a36e7c7ac8fe96915d9fbf348ae88caa07d9.zip
Merge pull request #6350 from jamessan/vim-8.0.0250
vim-patch:8.0.0250
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r--src/nvim/charset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index f31cef5886..efe32b915f 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -1166,6 +1166,7 @@ void getvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor,
pos->col = 0;
}
posptr = ptr + pos->col;
+ posptr -= utf_head_off(line, posptr);
}
// This function is used very often, do some speed optimizations.