From 3b5b0bf8945da67028e4213ce2d6b55a2b144f6b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 3 Oct 2019 19:13:22 +0000 Subject: [PATCH] console : if there were multiple suggestions, rewrite the line git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5573 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- console.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'"); } // }}}