mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 11:49:35 +01:00
Merge pull request #7033 from NixOS/backport-7032-to-2.11-maintenance
[Backport 2.11-maintenance] RunPager: Stop the progress bar
This commit is contained in:
commit
ae9e8a178f
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "gc-store.hh"
|
||||
#include "util.hh"
|
||||
#include "loggers.hh"
|
||||
#include "progress-bar.hh"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
|
|
@ -410,6 +411,8 @@ RunPager::RunPager()
|
|||
if (!pager) pager = getenv("PAGER");
|
||||
if (pager && ((std::string) pager == "" || (std::string) pager == "cat")) return;
|
||||
|
||||
stopProgressBar();
|
||||
|
||||
Pipe toPager;
|
||||
toPager.create();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue