fix broken progressbar display on urxvt due to improper calculation of to_erase

added space before bracket
This commit is contained in:
bubbleguuum 2021-02-15 14:05:43 +01:00 committed by Richard Hughes
parent 665c5feaca
commit 27df5cf06e

View File

@ -196,7 +196,7 @@ fu_progressbar_refresh (FuProgressbar *self, FwupdStatus status, guint percentag
/* dump to screen */
g_print ("%s", str->str);
self->to_erase = str->len;
self->to_erase = g_utf8_strlen (str->str, -1);
/* done */
if (is_idle_newline) {