From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
As can happen when building into gentoo's portage.
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
---
cmd/hare/progress.ha | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/hare/progress.ha b/cmd/hare/progress.ha
index 433f0767..ee21a3b0 100644
--- a/cmd/hare/progress.ha
+++ b/cmd/hare/progress.ha
@@ -13,7 +13,7 @@ fn progress_update(plan: *plan) void = {
const width = match (tty::winsize(tty)) {
case let ts: tty::ttysize =>
- yield if (ts.columns > 64) 64 else ts.columns;
+ yield if (ts.columns > 64 || ts.columns == 0) 64 else ts.columns;
case =>
yield 64;
}: size;
--
2.35.1