aboutsummaryrefslogtreecommitdiff
path: root/src/nix/progress-bar.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-11-04 22:29:31 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-11-04 22:29:31 +0100
commitb81d9d26f50784ab1884e2cc6bc470d5cba91bc9 (patch)
treebf1a03fff022f94271df102d045d6b33e677c2c6 /src/nix/progress-bar.cc
parente34b317bbf778efb4e9bee5d34fb2ceb7776de3f (diff)
parentf5a46ef0b1d76d32238f76ab8253f0d2d9fc72c9 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix/progress-bar.cc')
-rw-r--r--src/nix/progress-bar.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc
index 5c05d6b22..661966733 100644
--- a/src/nix/progress-bar.cc
+++ b/src/nix/progress-bar.cc
@@ -341,7 +341,7 @@ public:
}
auto width = getWindowSize().second;
- if (width <= 0) std::numeric_limits<decltype(width)>::max();
+ if (width <= 0) width = std::numeric_limits<decltype(width)>::max();
writeToStderr("\r" + filterANSIEscapes(line, false, width) + "\e[K");
}