Added quote param to autocomplete_param_with_ac

This commit is contained in:
James Booth
2014-07-09 20:32:28 +01:00
parent 954661e59e
commit 2f3234a5f5
4 changed files with 38 additions and 38 deletions

View File

@@ -220,7 +220,7 @@ autocomplete_param_with_func(char *input, int *size, char *command,
char *
autocomplete_param_with_ac(char *input, int *size, char *command,
Autocomplete ac)
Autocomplete ac, gboolean quote)
{
GString *auto_msg = NULL;
char *result = NULL;
@@ -235,7 +235,7 @@ autocomplete_param_with_ac(char *input, int *size, char *command,
}
inp_cpy[(*size) - len] = '\0';
char *found = autocomplete_complete(ac, inp_cpy, TRUE);
char *found = autocomplete_complete(ac, inp_cpy, quote);
if (found != NULL) {
auto_msg = g_string_new(command_cpy);
g_string_append(auto_msg, found);

View File

@@ -50,7 +50,7 @@ char * autocomplete_param_with_func(char *input, int *size, char *command,
autocomplete_func func);
char * autocomplete_param_with_ac(char *input, int *size, char *command,
Autocomplete ac);
Autocomplete ac, gboolean quote);
char * autocomplete_param_no_with_func(char *input, int *size, char *command,
int arg_number, autocomplete_func func);