1
0
Fork 0

Substract 1char from the width to avoid blank lines in the output on windows

pull/1456/merge
Jordi Boggiano 2013-02-15 14:22:56 +01:00
parent 211ca0c826
commit d4fb7bd251
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ EOT
$versionLength = max($versionLength, strlen($this->versionParser->formatVersion($package)));
}
list($width) = $this->getApplication()->getTerminalDimensions();
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$width--;
}
$writeVersion = $showVersion && ($nameLength + $versionLength + 3 <= $width);
$writeDescription = $nameLength + ($showVersion ? $versionLength : 0) + 24 <= $width;