mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Simplify cmd_ac_complete_filepath()
This commit is contained in:
parent
2184e92c19
commit
c65f03884e
@ -1531,8 +1531,6 @@ char*
|
|||||||
cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean previous)
|
cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean previous)
|
||||||
{
|
{
|
||||||
unsigned int output_off = 0;
|
unsigned int output_off = 0;
|
||||||
|
|
||||||
char* result = NULL;
|
|
||||||
char* tmp;
|
char* tmp;
|
||||||
|
|
||||||
// strip command
|
// strip command
|
||||||
@ -1631,12 +1629,7 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
|
|||||||
autocomplete_update(filepath_ac, (char**)files->data);
|
autocomplete_update(filepath_ac, (char**)files->data);
|
||||||
g_array_free(files, TRUE);
|
g_array_free(files, TRUE);
|
||||||
|
|
||||||
result = autocomplete_param_with_ac(input, startstr, filepath_ac, TRUE, previous);
|
return autocomplete_param_with_ac(input, startstr, filepath_ac, TRUE, previous);
|
||||||
if (result) {
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static char*
|
static char*
|
||||||
|
Loading…
Reference in New Issue
Block a user