feat(api): add win and buf to nvim_set_option_value

Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
This commit is contained in:
Lewis Russell
2022-05-11 13:49:43 +01:00
parent 6613f58ceb
commit 6219331c4d
5 changed files with 64 additions and 7 deletions

View File

@@ -1040,8 +1040,8 @@ Object copy_object(Object obj)
}
}
static void set_option_value_for(char *key, int numval, char *stringval, int opt_flags,
int opt_type, void *from, Error *err)
void set_option_value_for(char *key, long numval, char *stringval, int opt_flags,
int opt_type, void *from, Error *err)
{
switchwin_T switchwin;
aco_save_T aco;
@@ -1081,7 +1081,7 @@ static void set_option_value_for(char *key, int numval, char *stringval, int opt
}
static void set_option_value_err(char *key, int numval, char *stringval, int opt_flags, Error *err)
static void set_option_value_err(char *key, long numval, char *stringval, int opt_flags, Error *err)
{
char *errmsg;