From: Arun Prakash Jana Date: Sat, 19 Jun 2021 09:46:24 +0000 (+0530) Subject: Fix created archive not highlighted X-Git-Tag: v4.2~70 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d5359f0455fe73638d563dd56c9fc74dd9973536;p=nnn.git Fix created archive not highlighted --- diff --git a/src/nnn.c b/src/nnn.c index d5c14df9..fd614f2d 100644 --- 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)