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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user