aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-28 23:37:30 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-08-28 23:37:30 +0200
commita2403a0ed9afdfaea7abb5555dbdf555b56eff9a (patch)
tree74378ce589d267842f018955bbf9daf93bedac13 /src/nvim/spell.c
parentacdede50cebf7d247e55356be828ebaba43c0d3d (diff)
parentd110c6d7907d6f27f32b1d2bd91ffee7ef6097f4 (diff)
downloadrneovim-a2403a0ed9afdfaea7abb5555dbdf555b56eff9a.tar.gz
rneovim-a2403a0ed9afdfaea7abb5555dbdf555b56eff9a.tar.bz2
rneovim-a2403a0ed9afdfaea7abb5555dbdf555b56eff9a.zip
Merge #8863 'refactor: Remove mb_head_off() '
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r--src/nvim/spell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index 4acbdcc298..0ac1dd95e2 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -688,8 +688,9 @@ static void find_word(matchinf_T *mip, int mode)
arridx = endidx[endidxcnt];
wlen = endlen[endidxcnt];
- if ((*mb_head_off)(ptr, ptr + wlen) > 0)
+ if (utf_head_off(ptr, ptr + wlen) > 0) {
continue; // not at first byte of character
+ }
if (spell_iswordp(ptr + wlen, mip->mi_win)) {
if (slang->sl_compprog == NULL && !slang->sl_nobreak)
continue; // next char is a word character