aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-30 03:57:24 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-30 05:13:06 -0400
commit0e7048ae0558e457d37ce2d13dc5f1f9e62deb49 (patch)
tree7b892b17acbcac5e8298b641e336ee7de05647dd /src/nvim/spellfile.c
parentc3edbf813a2a67d5d0889ff1420407dfb78847cb (diff)
downloadrneovim-0e7048ae0558e457d37ce2d13dc5f1f9e62deb49.tar.gz
rneovim-0e7048ae0558e457d37ce2d13dc5f1f9e62deb49.tar.bz2
rneovim-0e7048ae0558e457d37ce2d13dc5f1f9e62deb49.zip
lint
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r--src/nvim/spellfile.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index ccad893d61..117939e7e9 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -955,8 +955,9 @@ someerror:
break;
}
if (ml_append_buf(slang->sl_sugbuf, (linenr_T)wordnr,
- ga.ga_data, ga.ga_len, TRUE) == FAIL)
+ ga.ga_data, ga.ga_len, true) == FAIL) {
goto someerror;
+ }
}
ga_clear(&ga);
@@ -4920,9 +4921,10 @@ sug_filltable (
((char_u *)gap->ga_data)[gap->ga_len++] = NUL;
if (ml_append_buf(spin->si_spellbuf, (linenr_T)wordnr,
- gap->ga_data, gap->ga_len, TRUE) == FAIL)
+ gap->ga_data, gap->ga_len, true) == FAIL) {
return -1;
- ++wordnr;
+ }
+ wordnr++;
// Remove extra NUL entries, we no longer need them. We don't
// bother freeing the nodes, the won't be reused anyway.