diff options
author | Phaedrus Leeds <mwleeds@protonmail.com> | 2023-01-02 18:19:05 -0800 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2023-01-02 20:45:19 -0600 |
commit | 8ca1604a94dc6a62880263141448f6688cb03205 (patch) | |
tree | ed5e4fe66ac712c4eef4752e5de2a0bfd905855d | |
parent | 1e8cb142813ddf3e5c3689758b06b473e0d47416 (diff) | |
download | flatpak-8ca1604a94dc6a62880263141448f6688cb03205.tar.gz |
repair: Fix off-by-one error in fancy output
Fixes https://github.com/flatpak/flatpak/issues/5204
-rw-r--r-- | app/flatpak-builtins-repair.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |