mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 16:56:22 +00:00
Renamed help autocompleter
This commit is contained in:
@@ -402,13 +402,13 @@ cmd_reset_completer(void)
|
|||||||
|
|
||||||
// Command help
|
// Command help
|
||||||
char *
|
char *
|
||||||
help_complete(char *inp)
|
cmd_help_complete(char *inp)
|
||||||
{
|
{
|
||||||
return p_autocomplete_complete(help_ac, inp);
|
return p_autocomplete_complete(help_ac, inp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
help_reset_completer(void)
|
cmd_help_reset_completer(void)
|
||||||
{
|
{
|
||||||
p_autocomplete_reset(help_ac);
|
p_autocomplete_reset(help_ac);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ gboolean cmd_execute(const char * const command, const char * const inp);
|
|||||||
gboolean cmd_execute_default(const char * const inp);
|
gboolean cmd_execute_default(const char * const inp);
|
||||||
|
|
||||||
// command help
|
// command help
|
||||||
char * help_complete(char *inp);
|
char * cmd_help_complete(char *inp);
|
||||||
void help_reset_completer(void);
|
void cmd_help_reset_completer(void);
|
||||||
GSList * cmd_get_basic_help(void);
|
GSList * cmd_get_basic_help(void);
|
||||||
GSList * cmd_get_settings_help(void);
|
GSList * cmd_get_settings_help(void);
|
||||||
GSList * cmd_get_status_help(void);
|
GSList * cmd_get_status_help(void);
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ inp_get_char(int *ch, char *input, int *size)
|
|||||||
|
|
||||||
reset_search_attempts();
|
reset_search_attempts();
|
||||||
reset_login_search();
|
reset_login_search();
|
||||||
help_reset_completer();
|
cmd_help_reset_completer();
|
||||||
cmd_reset_completer();
|
cmd_reset_completer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -373,7 +373,7 @@ _handle_edit(const int ch, char *input, int *size)
|
|||||||
inp_cpy[i-6] = input[i];
|
inp_cpy[i-6] = input[i];
|
||||||
}
|
}
|
||||||
inp_cpy[(*size) - 6] = '\0';
|
inp_cpy[(*size) - 6] = '\0';
|
||||||
found = help_complete(inp_cpy);
|
found = cmd_help_complete(inp_cpy);
|
||||||
if (found != NULL) {
|
if (found != NULL) {
|
||||||
auto_msg = (char *) malloc((6 + (strlen(found) + 1)) * sizeof(char));
|
auto_msg = (char *) malloc((6 + (strlen(found) + 1)) * sizeof(char));
|
||||||
strcpy(auto_msg, "/help ");
|
strcpy(auto_msg, "/help ");
|
||||||
|
|||||||
Reference in New Issue
Block a user