Skip to content

Commit

Permalink
fix: support min width not detectable
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Mar 28, 2024
1 parent d5fb6fb commit 33be270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/build/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def _showwarning(


_max_terminal_width = shutil.get_terminal_size().columns - 2
if _max_terminal_width <= 0:
_max_terminal_width = 80

Check warning on line 73 in src/build/__main__.py

View check run for this annotation

Codecov / codecov/patch

src/build/__main__.py#L73

Added line #L73 was not covered by tests


_fill = partial(textwrap.fill, subsequent_indent=' ', width=_max_terminal_width)
Expand Down

0 comments on commit 33be270

Please sign in to comment.