nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit de80bba9dbddb77cc541b2c39059f588a891770f
parent 466d138cc7873f67aca790414aff3241fefb2086
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Tue, 11 May 2021 16:23:06 +0530

musl libc: fix run cmd prompt message

Diffstat:
Msrc/nnn.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2064,10 +2064,9 @@ static int spawn(char *file, char *arg1, char *arg2, uchar_t flag) DPRINTF_D(pid); if ((flag & F_CONFIRM) || ((flag & F_CHKRTN) && retstatus)) { - printf("%s", messages[MSG_CONTINUE]); -#ifndef NORL - fflush(stdout); -#endif + status = write(STDOUT_FILENO, messages[MSG_CONTINUE], + xstrlen(messages[MSG_CONTINUE])); + (void)status; while (getchar() != '\n') {}; }