diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2019-11-03 21:46:59 +0000 |
---|---|---|
committer | Harald van Dijk <harald@gigawatt.nl> | 2019-11-03 21:46:59 +0000 |
commit | c935ad3f025d5c3d8026711a1eb50b2917b61d59 (patch) | |
tree | 9c86acc0c9b6ed56cf7d6f5d3b35c75ed4540d2f /src/libutil/hash.hh | |
parent | 06f9364e5ff3f32e23a82cc9aa166fb47fa9d43c (diff) |
Fix progress bar when nix-prefetch-url is piped.
The intent of the code was that if the window size cannot be determined,
it would be treated as having the maximum possible size. Because of a
missing assignment, it was actually treated as having a width of 0.
The reason the width could not be determined was because it was obtained
from stdout, not stderr, even though the printing was done to stderr.
This commit addresses both issues.
Diffstat (limited to 'src/libutil/hash.hh')
0 files changed, 0 insertions, 0 deletions