aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-01 02:26:32 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-01 02:26:32 +0530
commit47ec05565120a9637ec6d94fd1889b82d9fd93a0 (patch)
treee79b380cb7d37c6b2e63fe07e5dedb42fe0db81f
parentc01857cddbc18798571f6d382e01e842684a491a (diff)
downloadnnn-47ec05565120a9637ec6d94fd1889b82d9fd93a0.tar.gz
Fix #499: broken readline prompt
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8266882..81375a8 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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();
}