refactor(options): use os_win/os_buf for local options (#31060)

Conversely, don't use them for global options.
This commit is contained in:
zeertzjq
2024-11-08 14:54:28 +08:00
committed by GitHub
parent 8af1702647
commit f83a31b49d
2 changed files with 21 additions and 22 deletions

View File

@@ -892,10 +892,11 @@ int expand_set_chars_option(optexpand_T *args, int *numMatches, char ***matches)
}
/// The 'cinoptions' option is changed.
const char *did_set_cinoptions(optset_T *args FUNC_ATTR_UNUSED)
const char *did_set_cinoptions(optset_T *args)
{
buf_T *buf = (buf_T *)args->os_buf;
// TODO(vim): recognize errors
parse_cino(curbuf);
parse_cino(buf);
return NULL;
}