diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-04-10 20:46:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-10 20:46:02 -0600 |
commit | cdfb045ea027e018f14fb2735c3fd6aaa718ae58 (patch) | |
tree | bf4c2e4ade24d58711e45743cc4db35ac377d144 /src/nvim/api/buffer.c | |
parent | a2f157233f274599739941e39673ca4d3b0291c3 (diff) | |
parent | 379067d0386083b3f9531062d9f3a83a24bff745 (diff) | |
download | rneovim-cdfb045ea027e018f14fb2735c3fd6aaa718ae58.tar.gz rneovim-cdfb045ea027e018f14fb2735c3fd6aaa718ae58.tar.bz2 rneovim-cdfb045ea027e018f14fb2735c3fd6aaa718ae58.zip |
Merge pull request #18071 from gpanders/create_uc
refactor!: Rename nvim_add_user_command to nvim_create_user_command
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 18f7177489..6d5803a5fe 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1377,9 +1377,9 @@ Object nvim_buf_call(Buffer buffer, LuaRef fun, Error *err) /// /// @param buffer Buffer handle, or 0 for current buffer. /// @param[out] err Error details, if any. -/// @see nvim_add_user_command -void nvim_buf_add_user_command(Buffer buffer, String name, Object command, Dict(user_command) *opts, - Error *err) +/// @see nvim_create_user_command +void nvim_buf_create_user_command(Buffer buffer, String name, Object command, + Dict(user_command) *opts, Error *err) FUNC_API_SINCE(9) { buf_T *target_buf = find_buffer_by_handle(buffer, err); @@ -1389,14 +1389,14 @@ void nvim_buf_add_user_command(Buffer buffer, String name, Object command, Dict( buf_T *save_curbuf = curbuf; curbuf = target_buf; - add_user_command(name, command, opts, UC_BUFFER, err); + create_user_command(name, command, opts, UC_BUFFER, err); curbuf = save_curbuf; } /// Delete a buffer-local user-defined command. /// /// Only commands created with |:command-buffer| or -/// |nvim_buf_add_user_command()| can be deleted with this function. +/// |nvim_buf_create_user_command()| can be deleted with this function. /// /// @param buffer Buffer handle, or 0 for current buffer. /// @param name Name of the command to delete. |