diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-11 23:53:32 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-11 23:53:32 +0530 |
commit | b91f7a9600f474c80644e8305c0e1f037cd7db96 (patch) | |
tree | 5284d78045a1e783b270a2056be51d2602947fbb /src/nnn.c | |
parent | 94781f7977c855db2e85d0cbb92c1c2595a41259 (diff) | |
download | nnn-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |