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:
parent
0654aa1151
commit
a152d7fb8e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user