diff options
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r-- | src/pacman/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c index 01a9a143..17d6965a 100644 --- a/src/pacman/log.c +++ b/src/pacman/log.c @@ -164,6 +164,9 @@ int yesno(char *fmt, ...) *++pch = 0; strtrim(response); + /* User hits 'enter', forcing a newline here */ + neednl = 0; + if(!strcasecmp(response, _("Y")) || !strcasecmp(response, _("YES")) || !strlen(response)) { return(1); } |