summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2020-10-22 18:31:14 +0200
committerAllan McRae <allan@archlinux.org>2020-11-26 06:47:47 +0100
commit2859a6eefcb465a382267c6e5981192c6a54f5bb (patch)
treee1033093b4af8d075727b37339d6cccbcb62aaa9 /src
parent94ac3330dd3a42958ad5d9606ec254bc112936bf (diff)
downloadpacman-2859a6eefcb465a382267c6e5981192c6a54f5bb.tar.gz
pacman-2859a6eefcb465a382267c6e5981192c6a54f5bb.tar.xz
Go to the end of screen if 'printonly' mode enabled
At the end of download operation our code makes sure the cursor is moved to the end of the drawing area. But 'printonly' mode has its own if() branch that skips this cursor alignment. Add cursor_goto_end() to the 'printonly' codepath to make sure it does not clobber previous output. Fixes FS#68355 Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 4240a779..53518101 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -226,6 +226,7 @@ static int number_length(size_t n)
void cb_event(alpm_event_t *event)
{
if(config->print) {
+ cursor_goto_end();
return;
}
switch(event->type) {