Skip to content

Commit 6eea24a

Browse files
committed
TableFormatter: use one column less than indicated maximum
This avoids unwanted line breaks from the terminal
1 parent 41fa970 commit 6eea24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(Colors $colors = null)
3939
$width = @exec('tput cols');
4040
}
4141
if ($width) {
42-
$this->max = $width;
42+
$this->max = $width - 1;
4343
}
4444

4545
if ($colors) {

0 commit comments

Comments
 (0)