about summary refs log tree commit diff stats
path: root/src/command/cmd_ac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/cmd_ac.c')
-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 52535f23..12b2ae9d 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -1172,14 +1172,14 @@ char*
 cmd_ac_complete(ProfWin* window, const char* const input, gboolean previous)
 {
     // autocomplete command
-    if ((strncmp(input, "/", 1) == 0) && (!str_contains(input, strlen(input), ' '))) {
+    if ((strncmp(input, "/", 1) == 0) && (!strchr(input, ' '))) {
         char* found = NULL;
         found = autocomplete_complete(commands_ac, input, TRUE, previous);
         if (found) {
             return found;
         }
 
-        // autocomplete parameters
+    // autocomplete parameters
     } else {
         char* found = _cmd_ac_complete_params(window, input, previous);
         if (found) {