mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
musl libc: fix run cmd prompt message
This commit is contained in:
parent
466d138cc7
commit
de80bba9db
|
@ -2064,10 +2064,9 @@ static int spawn(char *file, char *arg1, char *arg2, uchar_t flag)
|
||||||
DPRINTF_D(pid);
|
DPRINTF_D(pid);
|
||||||
|
|
||||||
if ((flag & F_CONFIRM) || ((flag & F_CHKRTN) && retstatus)) {
|
if ((flag & F_CONFIRM) || ((flag & F_CHKRTN) && retstatus)) {
|
||||||
printf("%s", messages[MSG_CONTINUE]);
|
status = write(STDOUT_FILENO, messages[MSG_CONTINUE],
|
||||||
#ifndef NORL
|
xstrlen(messages[MSG_CONTINUE]));
|
||||||
fflush(stdout);
|
(void)status;
|
||||||
#endif
|
|
||||||
while (getchar() != '\n') {};
|
while (getchar() != '\n') {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue