1 parent a56f81f commit 6ea9ba0Copy full SHA for 6ea9ba0
1 file changed
src/ui.cppm
@@ -491,12 +491,14 @@ std::size_t max_live_lines() {
491
constexpr auto kFirstDraw = std::chrono::milliseconds(500);
492
493
// Whether the region has something to draw on a terminal now; line_mutex()
494
-// held.
+// held. The half-second wait is the status row's: a download bar outside a
495
+// report is drawn when its download starts.
496
bool may_draw_locked() {
497
auto& r = region();
498
if (r.suspended > 0 || g_quiet || !bars_live()) return false;
499
if (r.drawnRows > 0) return true;
- if (!(r.open && r.live) && r.bars.empty()) return false;
500
+ const bool report = r.open && r.live;
501
+ if (!report) return !r.bars.empty();
502
return std::chrono::steady_clock::now() - start_point() >= kFirstDraw;
503
}
504
0 commit comments