Fix #499: broken readline prompt

This commit is contained in:
Arun Prakash Jana 2020-04-01 02:26:32 +05:30
parent c01857cddb
commit 47ec055651
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -1710,9 +1710,9 @@ static int spawn(char *file, char *arg1, char *arg2, const char *dir, uchar flag
if (flag & F_NORMAL) {
if (flag & F_CONFIRM) {
printf("%s", messages[MSG_CONTINUE]);
fflush(stdout);
while (getchar() != '\n');
}
refresh();
}