Bladeren bron

Assume at least 80char wide terminal, fixes #6351

Jordi Boggiano 8 jaren geleden
bovenliggende
commit
8b0e615232
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      src/Composer/Command/ShowCommand.php

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

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