projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17bb0cf
)
Fix created archive not highlighted
author
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 19 Jun 2021 09:46:24 +0000 (15:16 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 19 Jun 2021 09:46:24 +0000 (15:16 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index d5c14df97dc20985f529b6f232e522fa8cdbf9b0..fd614f2df09da3a5d830980d983683a2f9ca755d 100644
(file)
--- a/
src/nnn.c
+++ b/
src/nnn.c
@@
-2125,8
+2125,7
@@
static int spawn(char *file, char *arg1, char *arg2, char *arg3, ushort_t flag)
if ((flag & F_CONFIRM) || ((flag & F_CHKRTN) && retstatus)) {
status = write(STDOUT_FILENO, messages[MSG_RETURN], xstrlen(messages[MSG_RETURN]));
(void)status;
- status = read(STDIN_FILENO, g_buf, PATH_MAX);
- (void)status;
+ while ((read(STDIN_FILENO, &status, 1) > 0) && (status != '\n'));
}
if (flag & F_NORMAL)