about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-24 01:39:16 +0100
committerJames Booth <boothj5@gmail.com>2016-05-24 01:39:16 +0100
commit492c1bfa14cc4c67777bf9473d6f2f678dbe3f4f (patch)
treeaddc8af3124f2538c681d67303a595590911dc72
parent78c23dce5894e9a9688d204ea5271be7f64dff4d (diff)
downloadprofani-tty-492c1bfa14cc4c67777bf9473d6f2f678dbe3f4f.tar.gz
Complete no arg for /script run|show
-rw-r--r--src/command/cmd_ac.c4
1 files 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;