aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar KlzXS <azszwymmvqdi@yahoo.com>2020-04-24 16:56:09 +0200
committerGravatar GitHub <noreply@github.com>2020-04-24 20:26:09 +0530
commit7b7252dd3256da50ed622240849015d80d49866c (patch)
tree4c79a32d536d75c6e3c35a4eabd07d5bf8d78242
parentbc572df55a35cc738466996abe26339fc5acaeda (diff)
downloadnnn-7b7252dd3256da50ed622240849015d80d49866c.tar.gz
Fix picker and list mode conflict (#533)
* Fix picker and list mode conflict * Comment the change
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ef1b50a..5f90fae 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");