aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-16 01:12:16 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-16 01:12:16 +0100
commit9cabe826ba8dfb5dd9464fdf09e28bb25c65ab71 (patch)
treeda360512ad8ce2855c39ab39358e7140e94bf327
parentb558f750bfc4718cbeb4a89d5f68ef11566e126d (diff)
downloadrneovim-9cabe826ba8dfb5dd9464fdf09e28bb25c65ab71.tar.gz
rneovim-9cabe826ba8dfb5dd9464fdf09e28bb25c65ab71.tar.bz2
rneovim-9cabe826ba8dfb5dd9464fdf09e28bb25c65ab71.zip
lint
-rw-r--r--src/nvim/spell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index d74360bcc0..38392509a5 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -3139,8 +3139,7 @@ spell_find_suggest (
if (su->su_badlen >= MAXWLEN)
su->su_badlen = MAXWLEN - 1; // just in case
STRLCPY(su->su_badword, su->su_badptr, su->su_badlen + 1);
- (void)spell_casefold(su->su_badptr, su->su_badlen,
- su->su_fbadword, MAXWLEN);
+ (void)spell_casefold(su->su_badptr, su->su_badlen, su->su_fbadword, MAXWLEN);
// TODO(vim): make this work if the case-folded text is longer than the
// original text. Currently an illegal byte causes wrong pointer
@@ -4369,10 +4368,11 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so
if (has_mbyte) {
c = mb_ptr2char(fword + sp->ts_fidx);
stack[depth].ts_fidx += MB_PTR2LEN(fword + sp->ts_fidx);
- if (enc_utf8 && utf_iscomposing(c))
+ if (enc_utf8 && utf_iscomposing(c)) {
stack[depth].ts_score -= SCORE_DEL - SCORE_DELCOMP;
- else if (c == mb_ptr2char(fword + stack[depth].ts_fidx))
+ } else if (c == mb_ptr2char(fword + stack[depth].ts_fidx)) {
stack[depth].ts_score -= SCORE_DEL - SCORE_DELDUP;
+ }
} else {
++stack[depth].ts_fidx;
if (fword[sp->ts_fidx] == fword[sp->ts_fidx + 1])