Explorar o código

Assume at least 80char wide terminal, fixes #6351

Jordi Boggiano %!s(int64=8) %!d(string=hai) anos
pai
achega
8b0e615232
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Composer/Command/ShowCommand.php

+ 2 - 0
src/Composer/Command/ShowCommand.php

@@ -256,6 +256,8 @@ EOT
         }
         if (Platform::isWindows()) {
             $width--;
+        } else {
+            $width = max(80, $width);
         }
 
         if ($input->getOption('path') && null === $composer) {