mirror of
https://github.com/neovim/neovim.git
synced 2025-11-08 11:35:10 +00:00
refactor: replace char_u with char 24 (#21823)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -278,9 +278,9 @@ void f_appendbufline(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
/// "bufadd(expr)" function
|
||||
void f_bufadd(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
char_u *name = (char_u *)tv_get_string(&argvars[0]);
|
||||
char *name = (char *)tv_get_string(&argvars[0]);
|
||||
|
||||
rettv->vval.v_number = buflist_add(*name == NUL ? NULL : (char *)name, 0);
|
||||
rettv->vval.v_number = buflist_add(*name == NUL ? NULL : name, 0);
|
||||
}
|
||||
|
||||
/// "bufexists(expr)" function
|
||||
|
||||
Reference in New Issue
Block a user