diff --git a/console.php b/console.php index fc7886e..1186812 100644 --- a/console.php +++ b/console.php @@ -390,13 +390,13 @@ class console $this->debug ("Autocompletion : Zero entry : do not change"); $string = $start.$end; } -/* if (is_array ($completeArr) && count ($completeArr)) { + // If there were multiple suggestions displayed, rewrite the line $cursorPos = mb_strlen ($prompt.$string) + 1; $this->rewriteLine ($prompt.$string); $this->moveCursor ($cursorPos); - }*/ + } $this->debug ("Autocompletion : end '$prompt.$string'"); } // }}}