1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Added cmd_help_autocomplete_add

This commit is contained in:
James Booth 2016-02-18 21:14:12 +00:00
parent 0654aa1151
commit a152d7fb8e
3 changed files with 9 additions and 1 deletions

View File

@ -2658,8 +2658,13 @@ cmd_autocomplete_add(const char *const value)
if (commands_ac) {
autocomplete_add(commands_ac, value);
}
}
void
cmd_help_autocomplete_add(const char *const value)
{
if (help_ac) {
autocomplete_add(help_ac, &value[1]);
autocomplete_add(help_ac, value);
}
}

View File

@ -47,6 +47,7 @@ void cmd_uninit(void);
char* cmd_autocomplete(ProfWin *window, const char *const input);
void cmd_reset_autocomplete(ProfWin *window);
void cmd_help_autocomplete_add(const char *const value);
void cmd_autocomplete_add(const char *const value);
void cmd_autocomplete_remove(const char *const value);
void cmd_autocomplete_add_form_fields(DataForm *form);

View File

@ -51,6 +51,8 @@ callbacks_add_command(PluginCommand *command)
{
p_commands = g_slist_append(p_commands, command);
cmd_autocomplete_add(command->command_name);
cmd_help_autocomplete_add(&command->command_name[1]);
}
void