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>
This commit is contained in:
Anatol Pomozov 2020-10-22 09:31:14 -07:00 committed by Allan McRae
parent 94ac3330dd
commit 2859a6eefc

View file

@ -226,6 +226,7 @@ static int number_length(size_t n)
void cb_event(alpm_event_t *event) void cb_event(alpm_event_t *event)
{ {
if(config->print) { if(config->print) {
cursor_goto_end();
return; return;
} }
switch(event->type) { switch(event->type) {