From 7b7252dd3256da50ed622240849015d80d49866c Mon Sep 17 00:00:00 2001 From: KlzXS Date: Fri, 24 Apr 2020 16:56:09 +0200 Subject: [PATCH] Fix picker and list mode conflict (#533) * Fix picker and list mode conflict * Comment the change --- src/nnn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nnn.c b/src/nnn.c index ef1b50ac..5f90fae8 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6827,6 +6827,10 @@ int main(int argc, char *argv[]) } } + /* Prevent picker and list mode conflict */ + if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) + exit(1); + home = getenv("HOME"); if (!home) { fprintf(stderr, "set HOME\n");