Merge pull request #18528 from lewis6991/setwinopt

feat(api): add `win` and `buf` to `nvim_set_option_value`
This commit is contained in:
bfredl
2022-05-25 17:05:28 +02:00
committed by GitHub
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;