From 6929db2cb7f0c663de5845fc836caa0111bbb520 Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Mon, 2 Jan 2023 18:19:05 -0800 Subject: [PATCH] repair: Fix off-by-one error in fancy output Fixes https://github.com/flatpak/flatpak/issues/5204 (cherry picked from commit 8ca1604a94dc6a62880263141448f6688cb03205) --- app/flatpak-builtins-repair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/flatpak-builtins-repair.c b/app/flatpak-builtins-repair.c index 50bdecb7..0248bc44 100644 --- a/app/flatpak-builtins-repair.c +++ b/app/flatpak-builtins-repair.c @@ -415,7 +415,7 @@ flatpak_builtin_repair (int argc, char **argv, GCancellable *cancellable, GError This does also mean that other areas of this code section that print errors will need to print a trailing newline as well, otherwise the output will overwrite any errors. */ - if (flatpak_fancy_output ()) + if (flatpak_fancy_output () && i != 1) g_print ("\033[A\r\033[K"); g_print (_("[%d/%d] Verifying %s…\n"), i, g_hash_table_size (all_refs), refspec);