From 52fa83359d5870bf54a1d0610f859e9313ab31f1 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Mon, 7 Jun 2021 20:14:20 -0700 Subject: [PATCH] Condition newline before progress display Sometimes the progress meter (e.g. during file text searches) appears at a column offset > 0 and doesn't look good. Fix that. --- src/sbbs3/con_out.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp index 402cbe8412..576004e908 100644 --- a/src/sbbs3/con_out.cpp +++ b/src/sbbs3/con_out.cpp @@ -1403,6 +1403,7 @@ void sbbs_t::progress(const char* text, int count, int total, int interval) if(text == NULL) text = ""; float pct = total ? ((float)count/total)*100.0F : 100.0F; SAFEPRINTF2(str, "[ %-8s %4.1f%% ]", text, pct); + cond_newline(); cursor_left(backfill(str, pct, cfg.color[clr_progress_full], cfg.color[clr_progress_empty])); } -- GitLab