aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-11 23:53:32 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-11 23:53:32 +0530
commitb91f7a9600f474c80644e8305c0e1f037cd7db96 (patch)
tree5284d78045a1e783b270a2056be51d2602947fbb /src/nnn.c
parent94781f7977c855db2e85d0cbb92c1c2595a41259 (diff)
downloadnnn-b91f7a9600f474c80644e8305c0e1f037cd7db96.tar.gz
Fix not waiting for command next time if non-Enter keys are pressed
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 00e8f5e..0de89d4 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1379,7 +1379,7 @@ 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]);
- getchar();
+ while (getchar() != '\n');
}
refresh();