diff options
author | alois31 <alois1@gmx-topmail.de> | 2024-07-10 03:43:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-07-10 03:43:07 +0000 |
commit | fa92f41a18660be33e7f15d538ae446ed33e4b71 (patch) | |
tree | c5e316197421deca4ee7ea4b40e56360c5719f15 | |
parent | 6e0ca0242579dc6114ccfc2417406372acc3004c (diff) | |
parent | f5ff70d7f33f0bf53cd160b2076506c8e2ecbba9 (diff) |
Merge "libmain: clear display attributes in the multiline progress bar" into main
-rw-r--r-- | src/libmain/progress-bar.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmain/progress-bar.cc b/src/libmain/progress-bar.cc index f5a22f41b..48a52f442 100644 --- a/src/libmain/progress-bar.cc +++ b/src/libmain/progress-bar.cc @@ -356,7 +356,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optional<s line += "]"; } if (printMultiline && !line.empty()) { - writeToStderr(filterANSIEscapes(line, false, width) + "\n"); + writeToStderr(filterANSIEscapes(line, false, width) + ANSI_NORMAL "\n"); state.lastLines++; } @@ -398,7 +398,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optional<s if (printMultiline) { if (state.lastLines < (height -1)) { - writeToStderr(filterANSIEscapes(activity_line, false, width) + "\n"); + writeToStderr(filterANSIEscapes(activity_line, false, width) + ANSI_NORMAL "\n"); state.lastLines++; } else moreActivities++; } |