aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2022-04-10 19:12:41 -0600
committerGregory Anders <greg@gpanders.com>2022-04-10 20:18:41 -0600
commitf94f75dc0512def7fbfdfe100eea2dab3352d61f (patch)
tree5550a6ad3da7f2585a215da7a1e9a85a99074e3c /src/nvim/api/vim.c
parentb2cb05b53e61d162044f71227e0ffeacbf59a4bb (diff)
downloadrneovim-f94f75dc0512def7fbfdfe100eea2dab3352d61f.tar.gz
rneovim-f94f75dc0512def7fbfdfe100eea2dab3352d61f.tar.bz2
rneovim-f94f75dc0512def7fbfdfe100eea2dab3352d61f.zip
refactor!: rename nvim_add_user_command to nvim_create_user_command
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 503a1c9f23..626f7dc3eb 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -2408,7 +2408,7 @@ Dictionary nvim_eval_statusline(String str, Dict(eval_statusline) *opts, Error *
///
/// Example:
/// <pre>
-/// :call nvim_add_user_command('SayHello', 'echo "Hello world!"', {})
+/// :call nvim_create_user_command('SayHello', 'echo "Hello world!"', {})
/// :SayHello
/// Hello world!
/// </pre>
@@ -2436,10 +2436,10 @@ Dictionary nvim_eval_statusline(String str, Dict(eval_statusline) *opts, Error *
/// {command}.
/// - force: (boolean, default true) Override any previous definition.
/// @param[out] err Error details, if any.
-void nvim_add_user_command(String name, Object command, Dict(user_command) *opts, Error *err)
+void nvim_create_user_command(String name, Object command, Dict(user_command) *opts, Error *err)
FUNC_API_SINCE(9)
{
- add_user_command(name, command, opts, 0, err);
+ create_user_command(name, command, opts, 0, err);
}
/// Delete a user-defined command.