mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
Fix errors
This commit is contained in:
parent
5f7e0531c1
commit
85164b28cb
@ -7292,7 +7292,7 @@ static buf_T *find_buffer(typval_T *avar)
|
|||||||
// "bufadd(expr)" function
|
// "bufadd(expr)" function
|
||||||
static void f_bufadd(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
static void f_bufadd(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||||
{
|
{
|
||||||
char_u *name = tv_get_string(&argvars[0]);
|
char_u *name = (char_u *)tv_get_string(&argvars[0]);
|
||||||
|
|
||||||
rettv->vval.v_number = buflist_add(*name == NUL ? NULL : name, 0);
|
rettv->vval.v_number = buflist_add(*name == NUL ? NULL : name, 0);
|
||||||
}
|
}
|
||||||
@ -7317,7 +7317,7 @@ static void f_buflisted(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// "bufload(expr)" function
|
// "bufload(expr)" function
|
||||||
static void f_bufload(typval_T *argvars, typval_T *rettv unused)
|
static void f_bufload(typval_T *argvars, typval_T *unused, FunPtr fptr)
|
||||||
{
|
{
|
||||||
buf_T *buf = get_buf_arg(&argvars[0]);
|
buf_T *buf = get_buf_arg(&argvars[0]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user