Merge pull request #3916 from Ma27/progress-bar-coloring

Always reset ANSI colors in progress-bar line
This commit is contained in:
Eelco Dolstra 2020-08-11 07:13:41 +02:00 committed by GitHub
commit 5f263e1fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ public:
auto width = getWindowSize().second;
if (width <= 0) width = std::numeric_limits<decltype(width)>::max();
writeToStderr("\r" + filterANSIEscapes(line, false, width) + "\e[K");
writeToStderr("\r" + filterANSIEscapes(line, false, width) + ANSI_NORMAL + "\e[K");
}
std::string getStatus(State & state)