Merge pull request #14607 from glacambre/fix_get_all_options_info_crash

[RDY] Generate PARAM_COUNT macro
This commit is contained in:
James McCoy
2021-05-26 10:30:20 -04:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -7705,7 +7705,7 @@ Dictionary get_vimoption(String name, Error *err)
Dictionary get_all_vimoptions(void)
{
Dictionary retval = ARRAY_DICT_INIT;
for (size_t i = 0; i < PARAM_COUNT; i++) {
for (size_t i = 0; options[i].fullname != NULL; i++) {
Dictionary opt_dict = vimoption2dict(&options[i]);
PUT(retval, options[i].fullname, DICTIONARY_OBJ(opt_dict));
}