浏览代码

Assume at least 80char wide terminal, fixes #6351

Jordi Boggiano 8 年之前
父节点
当前提交
8b0e615232
共有 1 个文件被更改,包括 2 次插入0 次删除
  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) {