Skip to content

Commit

Permalink
fix-progressbar-start
Browse files Browse the repository at this point in the history
lastMessagesLength and barCharOriginal should be reset if you want to use 2 or more Progress Bars in the same command flow.
  • Loading branch information
AntonioAngelino committed Jun 12, 2013
1 parent 8d29c64 commit e65723c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/Console/Helper/ProgressHelper.php
Expand Up @@ -186,6 +186,8 @@ public function start(OutputInterface $output, $max = null)
$this->current = 0;
$this->max = (int) $max;
$this->output = $output;
$this->lastMessagesLength = 0;
$this->barCharOriginal = '';

if (null === $this->format) {
switch ($output->getVerbosity()) {
Expand Down

1 comment on commit e65723c

@thvd
Copy link

@thvd thvd commented on e65723c Jun 29, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this commit be backported to a 2.3.x release?

Please sign in to comment.