diff --git a/console.php b/console.php index 1ffa55a..b7b4fac 100644 --- a/console.php +++ b/console.php @@ -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]);