console : Delete is now working for first char
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4240 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -496,7 +496,7 @@ private $usleep = 0;
|
|||||||
// Remove the char under the cursor (Delete)
|
// Remove the char under the cursor (Delete)
|
||||||
// {{{
|
// {{{
|
||||||
{
|
{
|
||||||
if ($cursorPos >= mb_strlen ($prompt.$string))
|
if ($cursorPos > mb_strlen ($prompt.$string))
|
||||||
continue;
|
continue;
|
||||||
$strArr = $this->mb_str_split ($string);
|
$strArr = $this->mb_str_split ($string);
|
||||||
unset ($strArr[$cursorPos - $minLength]);
|
unset ($strArr[$cursorPos - $minLength]);
|
||||||
|
|||||||
Reference in New Issue
Block a user