From 171edf4c110ebb681778778fc746ce4b5b22c903 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 3 Oct 2019 19:17:58 +0000 Subject: [PATCH] console : do not add unneeded spaces git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5574 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- console.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/console.php b/console.php index 1186812..257b1bb 100644 --- a/console.php +++ b/console.php @@ -337,9 +337,7 @@ class console if (count ($completeArr) === 1) { // One entry : add a space to put on the next - $this->debug ("Autocompletion : One entry : add ending space"); - if ($start !== "") - $start .= " "; + $this->debug ("Autocompletion : One entry : add it + ending space"); if ($isAssoc) $string = $start.key ($completeArr)." "; else @@ -381,8 +379,6 @@ class console $addChars = $this->shortestIdenticalValues ($completeArr); if ($addChars === "") $addChars = $end; - if ($start !== "") - $start .= " "; $string = $start.$addChars; } else