fix-progressbar-start

lastMessagesLength and barCharOriginal should be reset if you want to use 2 or more Progress Bars in the same command flow.
This commit is contained in:
Antonio Angelino 2013-06-12 16:52:32 +02:00
parent 8d29c64dcc
commit e65723c000

View File

@ -186,6 +186,8 @@ class ProgressHelper extends Helper
$this->current = 0; $this->current = 0;
$this->max = (int) $max; $this->max = (int) $max;
$this->output = $output; $this->output = $output;
$this->lastMessagesLength = 0;
$this->barCharOriginal = '';
if (null === $this->format) { if (null === $this->format) {
switch ($output->getVerbosity()) { switch ($output->getVerbosity()) {