diff options
| author | Michael Vetter <jubalh@iodoru.org> | 2020-11-05 09:31:59 +0100 |
|---|---|---|
| committer | Michael Vetter <jubalh@iodoru.org> | 2020-11-05 09:31:59 +0100 |
| commit | 36e0bfde46dc88c3988dfe513b9df8c18fd438a1 (patch) | |
| tree | 874c35728e81c2d9c2553442c079d5c95ee6ad51 /src/command | |
| parent | c65f03884ed9783a1483ed9da12f660edca91b6d (diff) | |
| download | profani-tty-36e0bfde46dc88c3988dfe513b9df8c18fd438a1.tar.gz | |
Simplify _sub_autocomplete()
Diffstat (limited to 'src/command')
| -rw-r--r-- | src/command/cmd_ac.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 0cc2257b..b90a2d0e 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1827,11 +1827,7 @@ _sub_autocomplete(ProfWin* window, const char* const input, gboolean previous) return result; } result = autocomplete_param_with_ac(input, "/sub", sub_ac, TRUE, previous); - if (result) { - return result; - } - - return NULL; + return result; } static char* |