From 492c1bfa14cc4c67777bf9473d6f2f678dbe3f4f Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 24 May 2016 01:39:16 +0100 Subject: Complete no arg for /script run|show --- src/command/cmd_ac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index df53b322..534afc0f 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1928,14 +1928,14 @@ static char* _script_autocomplete(ProfWin *window, const char *const input) { char *result = NULL; - if ((strncmp(input, "/script show ", 13) == 0) && (strlen(input) > 13)) { + if (strncmp(input, "/script show ", 13) == 0) { result = autocomplete_param_with_func(input, "/script show", _script_autocomplete_func); if (result) { return result; } } - if ((strncmp(input, "/script run ", 12) == 0) && (strlen(input) > 12)) { + if (strncmp(input, "/script run ", 12) == 0) { result = autocomplete_param_with_func(input, "/script run", _script_autocomplete_func); if (result) { return result; -- cgit 1.4.1-2-gfad0