diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-02-10 12:07:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 12:07:37 +0100 |
commit | 607606e3bb7a435ac5a0eba2eb4abde8eff774bb (patch) | |
tree | d8c984815503a709cd5f122cf08aaa00d5b1a73d /src/nvim/api/options.c | |
parent | 4948fa42efb90333a3b5738fd943b75f35415a7b (diff) | |
parent | 2d0e29614b4417e9764b9f7d588a50fe7f752749 (diff) | |
download | rneovim-607606e3bb7a435ac5a0eba2eb4abde8eff774bb.tar.gz rneovim-607606e3bb7a435ac5a0eba2eb4abde8eff774bb.tar.bz2 rneovim-607606e3bb7a435ac5a0eba2eb4abde8eff774bb.zip |
Merge pull request #27398 from bfredl/arena2
refactor(api): use arena for more stuff
Diffstat (limited to 'src/nvim/api/options.c')
-rw-r--r-- | src/nvim/api/options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/options.c b/src/nvim/api/options.c index fce4a85804..8128fdf67b 100644 --- a/src/nvim/api/options.c +++ b/src/nvim/api/options.c @@ -263,10 +263,10 @@ void nvim_set_option_value(uint64_t channel_id, String name, Object value, Dict( /// @see |nvim_get_commands()| /// /// @return dictionary of all options -Dictionary nvim_get_all_options_info(Error *err) +Dictionary nvim_get_all_options_info(Arena *arena, Error *err) FUNC_API_SINCE(7) { - return get_all_vimoptions(); + return get_all_vimoptions(arena); } /// Gets the option information for one option from arbitrary buffer or window @@ -302,7 +302,7 @@ Dictionary nvim_get_all_options_info(Error *err) /// Implies {scope} is "local". /// @param[out] err Error details, if any /// @return Option Information -Dictionary nvim_get_option_info2(String name, Dict(option) *opts, Error *err) +Dictionary nvim_get_option_info2(String name, Dict(option) *opts, Arena *arena, Error *err) FUNC_API_SINCE(11) { OptIndex opt_idx = 0; @@ -317,5 +317,5 @@ Dictionary nvim_get_option_info2(String name, Dict(option) *opts, Error *err) buf_T *buf = (req_scope == kOptReqBuf) ? (buf_T *)from : curbuf; win_T *win = (req_scope == kOptReqWin) ? (win_T *)from : curwin; - return get_vimoption(name, scope, buf, win, err); + return get_vimoption(name, scope, buf, win, arena, err); } |