commit 232ee41422b9c27b0e189f570a64ab85b731c55f
parent 7d81e7f873e8afb49256275918f8f1905203e73d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 6 May 2022 13:17:57 +0200
cmd/hare: Do not set progress width to 0
As can happen when building into gentoo's portage.
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;