diff options
-rw-r--r-- | libbutl/diagnostics.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbutl/diagnostics.cxx b/libbutl/diagnostics.cxx index 0736f77..83e09e3 100644 --- a/libbutl/diagnostics.cxx +++ b/libbutl/diagnostics.cxx @@ -134,7 +134,10 @@ namespace butl // same-line progress style, then reprint the current progress string // that was overwritten with the diagnostics. // - if (diag_stream == &cerr && *diag_term && !diag_progress.empty ()) + if (diag_stream == &cerr && + !diag_progress.empty () && + diag_term && + *diag_term) progress_print (diag_progress); diag_mutex.unlock (); |