diff options
author | James McCoy <jamessan@jamessan.com> | 2021-05-26 10:30:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 10:30:20 -0400 |
commit | 0b905be47b969baf20fb4fe9828341ddfc356092 (patch) | |
tree | b6a4bf5dae064f5d3484ee37c4c464890657ac50 /src/nvim/option.c | |
parent | fd91e73c57b2dd95e9395fef04c82b80b9c779bc (diff) | |
parent | 0c8454f5bc5c40a2d2926f4b630a8519731fd7ae (diff) | |
download | rneovim-0b905be47b969baf20fb4fe9828341ddfc356092.tar.gz rneovim-0b905be47b969baf20fb4fe9828341ddfc356092.tar.bz2 rneovim-0b905be47b969baf20fb4fe9828341ddfc356092.zip |
Merge pull request #14607 from glacambre/fix_get_all_options_info_crash
[RDY] Generate PARAM_COUNT macro
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 1454af1a73..335fa1cb62 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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)); } |