mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor(memory): use builtin strcat() instead of STRCAT()
The latter was mostly relevant with the past char_u madness. NOTE: STRCAT also functioned as a counterfeit "NOLINT" for clint apparently. But NOLINT-ing every usecase is just the same as disabling the check entirely.
This commit is contained in:
@@ -643,7 +643,7 @@ void spell_suggest(int count)
|
||||
int c = (int)(sug.su_badptr - line);
|
||||
memmove(p, line, (size_t)c);
|
||||
STRCPY(p + c, stp->st_word);
|
||||
STRCAT(p, sug.su_badptr + stp->st_orglen);
|
||||
strcat(p, sug.su_badptr + stp->st_orglen);
|
||||
|
||||
// For redo we use a change-word command.
|
||||
ResetRedobuff();
|
||||
@@ -1638,7 +1638,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char *fword, bool soun
|
||||
|
||||
// Append a space to preword when splitting.
|
||||
if (!try_compound && !fword_ends) {
|
||||
STRCAT(preword, " ");
|
||||
strcat(preword, " ");
|
||||
}
|
||||
sp->ts_prewordlen = (uint8_t)strlen(preword);
|
||||
sp->ts_splitoff = sp->ts_twordlen;
|
||||
|
Reference in New Issue
Block a user