aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-09-02 02:14:47 +0300
committerZviRackover <zvirack@gmail.com>2018-09-09 10:45:50 +0300
commit329cfc3303cffd5c9aad7b2ad7f4323354d68b0d (patch)
treee9abce8472ef283396c7830947c56e1d6154ef86 /src/nvim/spellfile.c
parentac13e65ae0ce98516e816ba4fcf468d19e750c30 (diff)
downloadrneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.tar.gz
rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.tar.bz2
rneovim-329cfc3303cffd5c9aad7b2ad7f4323354d68b0d.zip
lint: clean-up after parent commits
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r--src/nvim/spellfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index cc9af6fd80..f52ae61534 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -1457,8 +1457,9 @@ static int read_compound(FILE *fd, slang_T *slang, int len)
*pp++ = '|';
atstart = 1;
} else { // normal char, "[abc]" and '*' are copied as-is
- if (c == '?' || c == '+' || c == '~')
+ if (c == '?' || c == '+' || c == '~') {
*pp++ = '\\'; // "a?" becomes "a\?", "a+" becomes "a\+"
+ }
pp += utf_char2bytes(c, pp);
}
}
@@ -4241,7 +4242,7 @@ static int write_vim_spell(spellinfo_T *spin, char_u *fname)
// Form the <folchars> string first, we need to know its length.
size_t l = 0;
- for (size_t i = 128; i < 256; ++i) {
+ for (size_t i = 128; i < 256; i++) {
l += (size_t)utf_char2bytes(spelltab.st_fold[i], folchars + l);
}
put_bytes(fd, 1 + 128 + 2 + l, 4); // <sectionlen>