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:
2018-06-13 12:14:30 +00:00
parent e5e56b66c0
commit 1efb0c395d

View File

@@ -496,7 +496,7 @@ private $usleep = 0;
// Remove the char under the cursor (Delete)
// {{{
{
if ($cursorPos >= mb_strlen ($prompt.$string))
if ($cursorPos > mb_strlen ($prompt.$string))
continue;
$strArr = $this->mb_str_split ($string);
unset ($strArr[$cursorPos - $minLength]);