mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-28 03:45:10 -04:00
console: Fix bar progress length
The previous fix added the last character of text, but failed to account for the space we're adding.
This commit is contained in:
@@ -237,7 +237,7 @@ glnx_console_progress_text_percent (const char *text,
|
||||
}
|
||||
|
||||
textlen = MIN (input_textlen, ncolumns - bar_min);
|
||||
barlen = ncolumns - textlen;
|
||||
barlen = ncolumns - (textlen + 1);
|
||||
|
||||
if (textlen > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user