mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Renamed commands array
This commit is contained in:
parent
ccfbd2a436
commit
b48ef9d5e0
@ -1300,11 +1300,11 @@ _cmd_complete_parameters(char *input, int *size)
|
||||
return;
|
||||
}
|
||||
|
||||
gchar *commands[] = { "/help", "/prefs", "/log", "/disco", "/close", "/wins" };
|
||||
gchar *cmds[] = { "/help", "/prefs", "/log", "/disco", "/close", "/wins" };
|
||||
Autocomplete completers[] = { help_ac, prefs_ac, log_ac, disco_ac, close_ac, wins_ac };
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(commands); i++) {
|
||||
result = autocomplete_param_with_ac(input, size, commands[i], completers[i]);
|
||||
for (i = 0; i < ARRAY_SIZE(cmds); i++) {
|
||||
result = autocomplete_param_with_ac(input, size, cmds[i], completers[i]);
|
||||
if (result != NULL) {
|
||||
inp_replace_input(input, result, size);
|
||||
g_free(result);
|
||||
|
Loading…
Reference in New Issue
Block a user