console : do not add unneeded spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5574 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -337,9 +337,7 @@ class console
|
|||||||
if (count ($completeArr) === 1)
|
if (count ($completeArr) === 1)
|
||||||
{
|
{
|
||||||
// One entry : add a space to put on the next
|
// One entry : add a space to put on the next
|
||||||
$this->debug ("Autocompletion : One entry : add ending space");
|
$this->debug ("Autocompletion : One entry : add it + ending space");
|
||||||
if ($start !== "")
|
|
||||||
$start .= " ";
|
|
||||||
if ($isAssoc)
|
if ($isAssoc)
|
||||||
$string = $start.key ($completeArr)." ";
|
$string = $start.key ($completeArr)." ";
|
||||||
else
|
else
|
||||||
@@ -381,8 +379,6 @@ class console
|
|||||||
$addChars = $this->shortestIdenticalValues ($completeArr);
|
$addChars = $this->shortestIdenticalValues ($completeArr);
|
||||||
if ($addChars === "")
|
if ($addChars === "")
|
||||||
$addChars = $end;
|
$addChars = $end;
|
||||||
if ($start !== "")
|
|
||||||
$start .= " ";
|
|
||||||
$string = $start.$addChars;
|
$string = $start.$addChars;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user