aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spell.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-08-16 05:09:21 +0300
committerZviRackover <zvirack@gmail.com>2018-08-16 07:39:48 +0300
commitd110c6d7907d6f27f32b1d2bd91ffee7ef6097f4 (patch)
tree4e6700226b395f2cea6c172497a01eacbdca6b7d /src/nvim/spell.c
parent30392b635689a5f25421c17ead79e521863c8b57 (diff)
downloadrneovim-d110c6d7907d6f27f32b1d2bd91ffee7ef6097f4.tar.gz
rneovim-d110c6d7907d6f27f32b1d2bd91ffee7ef6097f4.tar.bz2
rneovim-d110c6d7907d6f27f32b1d2bd91ffee7ef6097f4.zip
lint: cleanup after parent commits
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 35dd41591c..f72c47bd15 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 (utf_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