1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-30 21:55:24 +00:00

Simplify cmd_ac_complete_filepath()

This commit is contained in:
Michael Vetter 2020-11-05 09:27:37 +01:00
parent 2184e92c19
commit c65f03884e

View File

@ -1531,8 +1531,6 @@ char*
cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean previous)
{
unsigned int output_off = 0;
char* result = NULL;
char* tmp;
// 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);
g_array_free(files, TRUE);
result = autocomplete_param_with_ac(input, startstr, filepath_ac, TRUE, previous);
if (result) {
return result;
}
return NULL;
return autocomplete_param_with_ac(input, startstr, filepath_ac, TRUE, previous);
}
static char*