mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -710,7 +710,7 @@ static char *ex_let_one(char *arg, typval_T *const tv, const bool copy, const bo
|
||||
}
|
||||
}
|
||||
if (p != NULL) {
|
||||
write_reg_contents(*arg == '@' ? '"' : *arg, p, (ssize_t)STRLEN(p), false);
|
||||
write_reg_contents(*arg == '@' ? '"' : *arg, p, (ssize_t)strlen(p), false);
|
||||
arg_end = arg + 1;
|
||||
}
|
||||
xfree(ptofree);
|
||||
@@ -1801,7 +1801,7 @@ void f_setbufvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
// reset notion of buffer
|
||||
aucmd_restbuf(&aco);
|
||||
} else {
|
||||
const size_t varname_len = STRLEN(varname);
|
||||
const size_t varname_len = strlen(varname);
|
||||
char *const bufvarname = xmalloc(varname_len + 3);
|
||||
buf_T *const save_curbuf = curbuf;
|
||||
curbuf = buf;
|
||||
|
Reference in New Issue
Block a user