From 2859a6eefcb465a382267c6e5981192c6a54f5bb Mon Sep 17 00:00:00 2001 From: Anatol Pomozov Date: Thu, 22 Oct 2020 09:31:14 -0700 Subject: 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 Signed-off-by: Allan McRae --- src/pacman/callback.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2