refactor: move hashtab types to hashtab_defs.h (#26262)

This commit is contained in:
zeertzjq
2023-11-28 10:47:22 +08:00
committed by GitHub
parent 3a3474371b
commit 1a8f60c7d2
13 changed files with 230 additions and 226 deletions

View File

@@ -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) {