diff options
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/command/command.c b/src/command/command.c index 0e7c9357..95a6158e 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1191,12 +1191,11 @@ cmd_alias_remove(char *value) void cmd_autocomplete(char *input, int *size) { - int i = 0; - char *found = NULL; - char inp_cpy[*size]; - // autocomplete command if ((strncmp(input, "/", 1) == 0) && (!str_contains(input, *size, ' '))) { + int i = 0; + char *found = NULL; + char inp_cpy[*size]; for(i = 0; i < *size; i++) { inp_cpy[i] = input[i]; } |