diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-28 10:47:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 10:47:22 +0800 |
commit | 1a8f60c7d2699826b51f23b040b83b1d96a14930 (patch) | |
tree | f75a8679c9991a47b6f637c4cd7fb2f771aa6508 /src/nvim/spellsuggest.c | |
parent | 3a3474371b6b87e630e7aa217e7860e9154cd563 (diff) | |
download | rneovim-1a8f60c7d2699826b51f23b040b83b1d96a14930.tar.gz rneovim-1a8f60c7d2699826b51f23b040b83b1d96a14930.tar.bz2 rneovim-1a8f60c7d2699826b51f23b040b83b1d96a14930.zip |
refactor: move hashtab types to hashtab_defs.h (#26262)
Diffstat (limited to 'src/nvim/spellsuggest.c')
-rw-r--r-- | src/nvim/spellsuggest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/spellsuggest.c b/src/nvim/spellsuggest.c index 1852f75432..af9f4db45a 100644 --- a/src/nvim/spellsuggest.c +++ b/src/nvim/spellsuggest.c @@ -3141,8 +3141,7 @@ static void check_suggestions(suginfo_T *su, garray_T *gap) // Need to append what follows to check for "the the". xstrlcpy(longword, stp[i].st_word, MAXWLEN + 1); int len = stp[i].st_wordlen; - xstrlcpy(longword + len, su->su_badptr + stp[i].st_orglen, - (size_t)(MAXWLEN - len + 1)); + xstrlcpy(longword + len, su->su_badptr + stp[i].st_orglen, MAXWLEN + 1 - (size_t)len); hlf_T attr = HLF_COUNT; (void)spell_check(curwin, longword, &attr, NULL, false); if (attr != HLF_COUNT) { |