From 97f79970252a06a1583ca1e1c8b22111720ddf94 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 5 Jul 2016 22:10:41 +0100 Subject: Move adding plugins commands to autocompleters --- src/plugins/api.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/api.c') diff --git a/src/plugins/api.c b/src/plugins/api.c index c8e6a166..e98e44d5 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -52,6 +52,7 @@ #include "command/cmd_defs.h" #include "window_list.h" #include "common.h" +#include "command/cmd_ac.h" void api_cons_alert(void) @@ -144,6 +145,9 @@ api_register_command(const char *const plugin_name, const char *command_name, in command->help = help; callbacks_add_command(plugin_name, command); + + cmd_ac_add(command->command_name); + cmd_ac_add_help(&command->command_name[1]); } void -- cgit 1.4.1-2-gfad0