index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-05-04 09:39:28 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-05-07 12:53:23 +1000 |
commit | 34da9d25e4884c3f89092f6295f1ca6070604c7e (patch) | |
tree | 8b47f13c1579e3a72fd1a1100004b5f00d35ae5f /src | |
parent | 0aa9628560e1ebbb4f4274305504f2f806b67266 (diff) |
-rw-r--r-- | src/pacman/util.c | 6 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index 35359678..59d3519e 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -1388,7 +1388,7 @@ int multiselect_question(char *array, int count) fprintf(stream, "\n"); fprintf(stream, _("Enter a selection (default=all)")); - fprintf(stream, ": "); + fprintf(stream, ": "); fflush(stream); if(config->noconfirm) { @@ -1452,7 +1452,8 @@ int select_question(int count) while(1) { fprintf(stream, "\n"); fprintf(stream, _("Enter a number (default=%d)"), preset); - fprintf(stream, ": "); + fprintf(stream, ": "); + fflush(stream); if(config->noconfirm) { fprintf(stream, "\n"); @@ -1513,7 +1514,6 @@ static int question(short preset, const char *format, va_list args) return preset; } - fflush(stream); flush_term_input(fd_in); if(fgets(response, sizeof(response), stdin)) { |