diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-28 23:43:04 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-08-28 23:43:04 +0200 |
commit | 461d46d8ace1b6950bf2733de9cb2b290453d86d (patch) | |
tree | a592acf9f95e8c60cc396f48ac4bf73656c0846c /src/nvim/spell.c | |
parent | 885ca3b7a60b79feb1d4c9e54265c8b543d4f245 (diff) | |
parent | a2403a0ed9afdfaea7abb5555dbdf555b56eff9a (diff) | |
download | rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.tar.gz rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.tar.bz2 rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.zip |
Merge #8863 'refactor: Remove mb_head_off()'
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 3 |
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 |