Fix created archive not highlighted

This commit is contained in:
Arun Prakash Jana 2021-06-19 15:16:24 +05:30
parent 17bb0cfb52
commit d5359f0455
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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)