diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-11-05 09:35:19 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-11-05 09:35:19 +0100 |
commit | 711ea4887fb97de8f6622fe19ec114e9be8fa8f9 (patch) | |
tree | 81bd683ec246bb6cb295a52e98df4fbf79988805 /src | |
parent | 38978b153b1f9a9c155382077c5c7034e6f23525 (diff) | |
download | profani-tty-711ea4887fb97de8f6622fe19ec114e9be8fa8f9.tar.gz |
Simplify _executable_autocomplete()
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_ac.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 31156e15..6a5e11ad 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -4135,11 +4135,8 @@ _executable_autocomplete(ProfWin* window, const char* const input, gboolean prev char* result = NULL; result = autocomplete_param_with_ac(input, "/executable", executable_ac, TRUE, previous); - if (result) { - return result; - } - return NULL; + return result; } static char* |